mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 07:02:47 +00:00
minor dragging offset fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24466 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
16fcaeab83
commit
a39fcf72a5
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2007-02-04 Richard Frith-Macdoanld <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSImageView.m: fix minor error in dragging offset.
|
||||||
|
|
||||||
2007-02-04 Matt Rice <ratmice@gmail.com>
|
2007-02-04 Matt Rice <ratmice@gmail.com>
|
||||||
|
|
||||||
* Source/NSTableView.m (-mouseDown:): Return early after tracking a
|
* Source/NSTableView.m (-mouseDown:): Return early after tracking a
|
||||||
|
|
|
@ -227,7 +227,7 @@ static Class imageCellClass;
|
||||||
s = [anImage size];
|
s = [anImage size];
|
||||||
p = [theEvent locationInWindow];
|
p = [theEvent locationInWindow];
|
||||||
p.x -= s.width/2;
|
p.x -= s.width/2;
|
||||||
p.y -= s.width/2;
|
p.y -= s.height/2;
|
||||||
[_window dragImage: anImage
|
[_window dragImage: anImage
|
||||||
at: p
|
at: p
|
||||||
offset: NSMakeSize(0, 0)
|
offset: NSMakeSize(0, 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue