summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-05-02 20:44:05 +0200
committermanuel <manuel@nc8430.lan>2009-05-02 20:44:05 +0200
commita17119a3e28ba4d1e82561d6dfd9a676da783db3 (patch)
tree83d24a498493819b73bc1ea890927104abcc7f4b
parent72cb1f2159d149950b99a43aa21d3a5b771d584a (diff)
downloadooprog-a17119a3e28ba4d1e82561d6dfd9a676da783db3.tar.gz
ooprog-a17119a3e28ba4d1e82561d6dfd9a676da783db3.tar.bz2
ooprog-a17119a3e28ba4d1e82561d6dfd9a676da783db3.zip
additional assert for getXPMColorID
-rw-r--r--ue2/imgsynth2/cpixmap.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ue2/imgsynth2/cpixmap.cpp b/ue2/imgsynth2/cpixmap.cpp
index 52f9825..83a2a0b 100644
--- a/ue2/imgsynth2/cpixmap.cpp
+++ b/ue2/imgsynth2/cpixmap.cpp
@@ -269,6 +269,7 @@ const std::string CPixmap::getXPMColorID(unsigned int index, unsigned int length
269{ 269{
270 static const char code[] = PIXMAP_COLORCHARS; 270 static const char code[] = PIXMAP_COLORCHARS;
271 assert(strlen(code) > 0); 271 assert(strlen(code) > 0);
272 assert(length > 0);
272 string str(""); 273 string str("");
273 for(unsigned int i = length - 1; i > 0; i--) 274 for(unsigned int i = length - 1; i > 0; i--)
274 { 275 {