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   2247 Views

Avatar
DrSlump

Community Member, 2 Posts

3 February 2007 at 12:22pm

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

Administrator, 685 Posts

4 February 2007 at 11:27am

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