remove c99-ism

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32722 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2011-03-28 13:48:29 +00:00
parent 140d4ffcea
commit 0ee3c76f8f
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2011-03-28 Riccardo Mottola <rm@gnu.org>
* Source/NSSearchFieldCell.m:
Remove c99-ism
2011-03-25 German Arias <german@xelalug.org>
* Panels/Spanish.lproj/GSDataLinkPanel.gorm:

View file

@ -402,6 +402,7 @@
NSRect rect;
NSPoint thePoint;
NSPoint location = [event locationInWindow];
NSText *currentEditor;
thePoint = [controlView convertPoint: location fromView: nil];
@ -424,9 +425,9 @@
untilMouseUp: untilMouseUp];
}
NSText *currentEditor = ([controlView isKindOfClass:[NSControl class]]
? [(NSControl *)controlView currentEditor]
: nil);
currentEditor = ([controlView isKindOfClass:[NSControl class]]
? [(NSControl *)controlView currentEditor]
: nil);
if (currentEditor)
{
[currentEditor mouseDown: event];