gnustep-dev
[Top][All Lists]
Advanced

[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 19:37:59 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Hi!

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,
Guenther





reply via email to

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