bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSScroller won't always redraw itself


From: Alexander Malmberg
Subject: NSScroller won't always redraw itself
Date: Mon, 08 Apr 2002 23:37:15 +0200

Hi,

If {NSScroller -setFloatValue:knobProportion:] is called with a changed
knobProportion but an unchanged floatValue the internal values will be
updated, but it won't redraw itself. The reason is that
-setFloatValue:knobProportion: sets the knobProportion and then calls
-setFloatValue: to set the floatValue and redraw, but the
-setFloatValue: thinks that nothing changed and doesn't redraw. I've
attached a patch that fixes this.

- Alexander Malmberg
Index: NSScroller.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/NSScroller.m,v
retrieving revision 1.57
diff -u -r1.57 NSScroller.m
--- NSScroller.m        21 Mar 2002 21:47:15 -0000      1.57
+++ NSScroller.m        8 Apr 2002 21:30:43 -0000
@@ -382,6 +382,7 @@
       _knobProportion = ratio;
     }
 
+  _floatValue = -1;
   [self setFloatValue: aFloat];
 }
 

reply via email to

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