Check in the control not in the text field whether the cell is currently

being edited.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26613 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2008-06-09 10:04:49 +00:00
parent b4d065a9bf
commit 1a9a9468c0
4 changed files with 40 additions and 32 deletions

View file

@ -625,6 +625,18 @@ static NSNotificationCenter *nc;
- (void) drawRect: (NSRect)aRect
{
/* Do nothing if there is already a text editor doing the drawing;
* otherwise, we draw everything twice. That is bad if there are
* any transparency involved (eg, even an anti-alias font!) because
* if the semi-transparent pixels are drawn over themselves they
* become less transparent (eg, an anti-alias font becomes darker
* and gives the impression of being bold).
*/
if ([self currentEditor] != nil)
{
return;
}
[self drawCell: _cell];
}