Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Bug in Image getWidth() and getHeight()


Reply

2 Posts   2215 Views

Avatar
DrSlump

3 February 2007 at 12:22pm Community Member, 2 Posts

Hi,

I've just come across a small bug in /saphire/core/model/Image.php

The getters getWidth() and getHeight() return the values interchanged. That is, getWidth() should call getDimension(0) and getHeight() should call getDimension(1).

cheers,
Ivan

Avatar
Sam

4 February 2007 at 11:27am Administrator, 685 Posts

Thanks for the note, Ivan. We've added it to our bug tracker.