diff window/widget.cc @ 14:8da1d92ac8f8

Don't create fonts faces for size <= 0, and update objects when their font size is set
author thib
date Sat, 09 Aug 2008 12:04:08 +0000
parents 223b71206888
children 5f548e5957a8
line wrap: on
line diff
--- a/window/widget.cc
+++ b/window/widget.cc
@@ -63,6 +63,7 @@ void SetFont(const char* font) {
 #define AnmPtnAlpha WidAnmPtnAlpha
 
 XKFont::HorizLayout* DefaultLayout(int text_size) {
+    if(text_size <= 0) abort();//FIXME: Find why the hell text_size can be <= 0
 	if (size_to_layout.find(text_size) == size_to_layout.end()) {
 		size_to_layout[text_size] = new XKFont::HorizLayout(wdefault_font.c_str(), text_size);
 	}