bh: thuban/Thuban/UI legend.py,1.39,1.40

cvs@intevation.de cvs at intevation.de
Tue Mar 29 20:05:03 CEST 2005


Author: bh

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

Modified Files:
	legend.py 
Log Message:
(BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
match the site of the legend_icon_layer icon.  Otherwise wxpython
2.5 complains when the legend is created with the error:

PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == 0)"
failed in ./src/generic/imaglist.cpp(81): invalid bitmap size in
wxImageList: this might work on this platform but definitely won't under
Windows.


Index: legend.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/legend.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- legend.py	16 Feb 2005 21:14:47 -0000	1.39
+++ legend.py	29 Mar 2005 18:05:00 -0000	1.40
@@ -45,8 +45,8 @@
 ID_LEGEND_SHOWLAYER = 4007
 ID_LEGEND_HIDELAYER = 4008
 
-BMP_SIZE_W = 15
-BMP_SIZE_H = 15
+BMP_SIZE_W = 16
+BMP_SIZE_H = 16
 
 TOP_BMP = "top_layer"
 RAISE_BMP = "raise_layer"





More information about the Thuban-devel mailing list

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