jan: thuban/Thuban/UI renderer.py,1.62,1.63

cvs@intevation.de cvs at intevation.de
Tue Jun 28 08:48:47 CEST 2005


Author: jan

Update of /thubanrepository/thuban/Thuban/UI
In directory doto:/tmp/cvs-serv20035

Modified Files:
	renderer.py 
Log Message:
(ScreenRenderer.draw_selection_incrementally):
Use the default size for rendering selected items of default type.
Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149


Index: renderer.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/renderer.py,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- renderer.py	6 May 2005 14:18:31 -0000	1.62
+++ renderer.py	28 Jun 2005 06:48:45 -0000	1.63
@@ -1,9 +1,9 @@
-# Copyright (c) 2001-2004 by Intevation GmbH
+# Copyright (c) 2001-2005 by Intevation GmbH
 # Authors:
 # Bernhard Herzog <bh at intevation.de> (2001-2003)
 # Jonathan Coles <jonathan at intevation.de> (2003)
 # Frank Koormann <frank.koormann at intevation.de> (2003)
-# Jan-Oliver Wagner <jan at intevation.de> (2003, 2004)
+# Jan-Oliver Wagner <jan at intevation.de> (2003-2005)
 #
 # This program is free software under the GPL (>=v2)
 # Read the file COPYING coming with Thuban for details.
@@ -264,10 +264,13 @@
 
             # Get the size of the specific property for this
             # point
-            if shapetype == SHAPETYPE_POINT and field is not None:
-                value = table.ReadValue(shape.ShapeID(), field)
-                group = lc.FindGroup(value)
-                size = group.GetProperties().GetSize()
+            if shapetype == SHAPETYPE_POINT:
+	    	if field is not None:
+                    value = table.ReadValue(shape.ShapeID(), field)
+                    group = lc.FindGroup(value)
+                    size = group.GetProperties().GetSize()
+                else:
+                    size = lc.GetDefaultSize()
                 args = (pen, brush, size)
 
             if useraw:





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)