[Greater-commits] r3605 - trunk/GREAT-ER/Thuban/UI
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Jul 15 17:03:42 CEST 2011
Author: aheinecke
Date: 2011-07-15 17:03:42 +0200 (Fri, 15 Jul 2011)
New Revision: 3605
Modified:
trunk/GREAT-ER/Thuban/UI/renderer.py
Log:
Working with clipping regions is superflous when printing
or exporting.
The clipping regions restricted printing only to clipped
regions and caused all other regions not to be printed.
Modified: trunk/GREAT-ER/Thuban/UI/renderer.py
===================================================================
--- trunk/GREAT-ER/Thuban/UI/renderer.py 2011-07-15 14:06:58 UTC (rev 3604)
+++ trunk/GREAT-ER/Thuban/UI/renderer.py 2011-07-15 15:03:42 UTC (rev 3605)
@@ -372,15 +372,11 @@
# Draw the map
self.dc.BeginDrawing()
- self.dc.DestroyClippingRegion()
- self.dc.SetClippingRegion(mminx+self.shiftx, mminy+self.shifty,
- urx, ury)
self.render_map()
self.dc.EndDrawing()
# Draw the rest (frames, legend, scalebar)
self.dc.BeginDrawing()
- self.dc.DestroyClippingRegion()
# Force the font for Legend drawing
font = wx.Font(self.resolution * 10, wx.SWISS, wx.NORMAL, wx.NORMAL)
@@ -412,10 +408,6 @@
# Legend Frame
dc.DrawRectangle(mmaxx+10,mminy,(width-20) - (mmaxx+10), mmaxy-mminy)
- dc.DestroyClippingRegion()
- dc.SetClippingRegion(mmaxx+10,mminy,
- (width-20) - (mmaxx+10), mmaxy-mminy)
-
def render_legend(self):
"""Render the legend on the Map."""
More information about the Greater-commits
mailing list