mailr12018 - /branches/bieri_gui/gui_bieri/about.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on December 28, 2010 - 23:58:
Author: bugman
Date: Tue Dec 28 23:58:41 2010
New Revision: 12018

URL: http://svn.gna.org/viewcvs/relax?rev=12018&view=rev
Log:
Fix for the half hidden about gui window - the virtual size is now the 
maximum of x and y.


Modified:
    branches/bieri_gui/gui_bieri/about.py

Modified: branches/bieri_gui/gui_bieri/about.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/about.py?rev=12018&r1=12017&r2=12018&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/about.py (original)
+++ branches/bieri_gui/gui_bieri/about.py Tue Dec 28 23:58:41 2010
@@ -149,7 +149,8 @@
         """Build the buffered dc containing the window contents."""
 
         # The buffer for buffered drawing (work around for a GTK bug, the 
bitmap must be square!!!).
-        self.buffer = wx.EmptyBitmap(self.virt_y, self.virt_y)
+        size = max(self.virt_x, self.virt_y)
+        self.buffer = wx.EmptyBitmap(size, size)
 
         # Create the device context.
         self.dc = wx.BufferedDC(None, self.buffer)




Related Messages


Powered by MHonArc, Updated Wed Dec 29 11:20:02 2010