On Thu, Apr 05, 2007 at 01:31:47AM +0200, Uwe Stöhr wrote:
> The problem of bug 3420 is that the items for the empty delimiter is added by
> this code
>
> leftCO->addItem(QIcon(QPixmap(toqstr(empty_xpm))), qt_("(None)"));
>
> instead of
> leftCO->addItem(QIcon(QPixmap(toqstr(empty_xpm))), qt_("(None)"),
> "empty");
>
> But doing this doesn't help as this code is nwever called:
>
> if (str == "empty")
> return ".";
>
> Has anybody an idea why the value is not recognized?
Because str is literally "empty", so the attached should fix it.
--
Enrico
Index: src/frontends/qt4/QDelimiterDialog.C
===================================================================
--- src/frontends/qt4/QDelimiterDialog.C (revision 17723)
+++ src/frontends/qt4/QDelimiterDialog.C (working copy)
@@ -76,7 +76,7 @@ string fix_name(const string & str, bool
return "/";
if (str == "backslash")
return "\\";
- if (str == "empty")
+ if (str.empty())
return ".";
if (!big || str == "(" || str == ")" || str == "[" || str == "]")
return str;