fix for the compilation problem of many pre gcc3.4.x users.
authorTobias Gläßer <tobi.web@gmx.de>
Wed, 28 Jul 2004 23:33:23 +0000 (23:33 +0000)
committerTobias Gläßer <tobi.web@gmx.de>
Wed, 28 Jul 2004 23:33:23 +0000 (23:33 +0000)
SVN-Revision: 1663

lib/gui/menu.cpp

index e060e39..b23ff78 100644 (file)
@@ -509,7 +509,8 @@ Menu::draw_item(DrawingContext& context,
   int text_width  = int(text_font->get_text_width(pitem.text));
   int input_width = int(text_font->get_text_width(pitem.input) + 10);
   int list_width = 0;
-  if(pitem.list.second != 0)
+  std::set<std::string>::iterator tmp = 0;
+  if(pitem.list.second != tmp)
   list_width = int(text_font->get_text_width((*pitem.list.second)));
   
   if (arrange_left)