[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImageView drag&drop "patch"

From: Guenther Noack
Subject: NSImageView drag&drop "patch"
Date: Sat, 3 Feb 2007 18:58:20 +0100
User-agent: Mutt/1.5.13 (2006-08-11)


I found a small bug in NSImageView.m. When dragging an image from
the NSImageView, the dragged image is placed at the wrong position
due to a miscalculation of that position.

The fix is easy, in the method -mouseDown:, replace the line
p.y -= s.width/2;

with the line
p.y -= s.height/2;

Sorry that I couldn't send a diff. I currently don't have a copy
of the -gui SVN version at hand. It's pretty easy to fix, though. :-)

With best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]