bug-gnustep
[Top][All Lists]
Advanced

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

Fix: NSView, setBoundsOrigin:


From: Georg Fleischmann
Subject: Fix: NSView, setBoundsOrigin:
Date: Mon, 9 Apr 2001 23:11:19 +0200

Hi,

here is a patch for NSView to renew the gstate after setting a new origin.
I hope it is useful ...

Georg


2001-04-09  Georg Fleischmann

        * gui/Source/NSView.m
        [NSView setBoundsOrigin:]: renew gstate


diff -u gui/Source/NSView.m.old gui/Source/NSView.m


--- gui/Source/NSView.m.old     Mon Apr  9 22:37:28 2001
+++ gui/Source/NSView.m Mon Apr  9 22:38:38 2001
@@ -851,6 +851,11 @@
     }
   [_boundsMatrix setFrameOrigin: NSMakePoint(-newOrigin.x, -newOrigin.y)];

+  /* renew gstate */
+  if (_allocate_gstate && _gstate)
+    PSundefineuserobject(_gstate);
+  _gstate = 0;
+
   if (_post_bounds_changes)
     {
       [nc postNotificationName: NSViewBoundsDidChangeNotification



reply via email to

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