bh: thuban/Thuban/UI view.py,1.62,1.63 renderer.py,1.51,1.52
cvs@intevation.de
cvs at intevation.de
Mon Dec 13 19:26:14 CET 2004
Author: bh
Update of /thubanrepository/thuban/Thuban/UI
In directory doto:/tmp/cvs-serv13708/Thuban/UI
Modified Files:
view.py renderer.py
Log Message:
* Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
renderer has to be at the same position as the mapregion
* Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
has to be moved by (self.shiftx, self.shifty) too.
Index: view.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/view.py,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- view.py 17 Feb 2004 13:14:49 -0000 1.62
+++ view.py 13 Dec 2004 18:26:11 -0000 1.63
@@ -94,7 +94,7 @@
canvas_scale = self.canvas.scale
x, y, width, height = self.region
renderer = PrinterRenderer(dc, self.map, scale, offset,
- region = (0, 0,
+ region = (mapregion[0], mapregion[1],
(width/canvas_scale)*scale,
(height/canvas_scale)*scale),
resolution = resy,
Index: renderer.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/renderer.py,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- renderer.py 5 Dec 2004 15:03:44 -0000 1.51
+++ renderer.py 13 Dec 2004 18:26:11 -0000 1.52
@@ -268,6 +268,7 @@
self.shifty = (mmaxy - mminy)*0.5 - (ury - lly)*0.5
self.offset = (offx+self.shiftx, offy+self.shifty)
+ self.region = (llx + self.shiftx, lly + self.shifty, urx, ury)
# Draw the map
self.dc.BeginDrawing()
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)