Get drag position right

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23854 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-10-12 14:10:27 +00:00
parent e439399f59
commit 4526afc00a
2 changed files with 8 additions and 4 deletions

View file

@ -1,6 +1,11 @@
2006-10-12 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSImageView.m: Fix error in initial drag position.
2006-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
* GNUmakefile (GNUSTEP_INSTALLATION_DOMAIN): Use GNUSTEP_INSTALLATION_DOMAIN
* GNUmakefile (GNUSTEP_INSTALLATION_DOMAIN):
Use GNUSTEP_INSTALLATION_DOMAIN
instead of GNUSTEP_INSTALLATION_DIR.
2006-10-09 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -153,8 +153,8 @@ static Class imageCellClass;
- (NSDragOperation) draggingEntered: (id <NSDraggingInfo>)sender
{
if (([sender draggingSource] != self) && ([self isEditable]) &&
([NSImage canInitWithPasteboard: [sender draggingPasteboard]]))
if (([sender draggingSource] != self) && ([self isEditable])
&& ([NSImage canInitWithPasteboard: [sender draggingPasteboard]]))
{
[_cell setHighlighted: YES];
return NSDragOperationCopy;
@ -226,7 +226,6 @@ static Class imageCellClass;
// Center the image on the mouse position ... is this right?
s = [anImage size];
p = [theEvent locationInWindow];
p = [self convertPoint: p fromView: nil];
p.x -= s.width/2;
p.y -= s.width/2;
[_window dragImage: anImage