Author: dpsimons
Date: Fri Apr 17 17:39:53 2015
New Revision: 38458

URL: http://svn.gna.org/viewcvs/gnustep?rev=38458&view=rev
Log:
fix broken display update when expanding an outlineView item

Modified:
    libs/gui/branches/gnustep_testplant_branch/ChangeLog
    libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m
    libs/gui/branches/gnustep_testplant_branch/Source/NSView.m

Modified: libs/gui/branches/gnustep_testplant_branch/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/ChangeLog?rev=38458&r1=38457&r2=38458&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/ChangeLog        (original)
+++ libs/gui/branches/gnustep_testplant_branch/ChangeLog        Fri Apr 17 
17:39:53 2015
@@ -1,3 +1,12 @@
+2015-04-17  Doug Simons <[email protected]>
+
+       * Source/NSView.m: Fix broken invalidRect mechanism so, for
+       example, NSOutlineView will redraw correctly when expanding
+       an item.
+       * Source/NSTableView.m: Correct an apparently incorrect use of
+       origin.x rather than origin.y when comparing heights, although
+       I'm not sure if this code does anything useful anyway.
+
 2015-03-26  Doug Simons <[email protected]>
 
        * Source/NSSavePanel.m: Fix problem with the title shown in

Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m?rev=38458&r1=38457&r2=38458&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m     
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m     Fri Apr 
17 17:39:53 2015
@@ -5094,7 +5094,7 @@
     {
       NSRect superviewBounds; // Get this *after* [self setFrame:]
       superviewBounds = [_super_view bounds];
-      if ((superviewBounds.origin.x <= _frame.origin.x) 
+      if ((superviewBounds.origin.y <= _frame.origin.y) 
         && (NSMaxY(superviewBounds) >= NSMaxY(_frame)))
         {
           [self setNeedsDisplay: YES];

Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSView.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSView.m?rev=38458&r1=38457&r2=38458&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSView.m  (original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSView.m  Fri Apr 17 
17:39:53 2015
@@ -2816,7 +2816,8 @@
          const NSRect inBaseRounded = NSIntegralRect(inBase);
          _invalidRect = [self convertRectFromBase: inBaseRounded];
 
-          [_window setViewsNeedDisplay: YES];
+          invalidRect = [_super_view convertRect: _invalidRect fromView: self];
+          [_super_view setNeedsDisplayInRect: invalidRect];
         }
       else
         {


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to