]> git.lyx.org Git - features.git/commitdiff
Oops -- cut off wrong part of label
authorMartin Vermeer <martin.vermeer@hut.fi>
Fri, 24 Aug 2007 14:42:41 +0000 (14:42 +0000)
committerMartin Vermeer <martin.vermeer@hut.fi>
Fri, 24 Aug 2007 14:42:41 +0000 (14:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19771 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCharStyle.cpp

index c163f491121b361b46f4bfe8b0d0155cef0f074d..042cec2b8f0a61bf44e78f69e8eb16b1ecaf8b29 100644 (file)
@@ -138,11 +138,11 @@ bool InsetCharStyle::metrics(MetricsInfo & mi, Dimension & dim) const
        if (status() == Open) {
                // FIXME UNICODE
                docstring s(from_utf8(params_.name));
-               if (undefined())
-                       s = _("Undef: ") + s;
                // Chop off prefix:
                if (s.find(':') != string::npos)
                        s = s.substr(s.find(':'));
+               if (undefined())
+                       s = _("Undef: ") + s;
                layout_.labelstring = s;
        }
        return changed;
@@ -164,11 +164,11 @@ void InsetCharStyle::draw(PainterInfo & pi, int x, int y) const
        if (status() == Open) {
                // FIXME UNICODE
                docstring s(from_utf8(params_.name));
-               if (undefined())
-                       s = _("Undef: ") + s;
                // Chop off prefix:
                if (s.find(':') != string::npos)
                        s = s.substr(s.find(':'));
+               if (undefined())
+                       s = _("Undef: ") + s;
                layout_.labelstring = s;
        }
 }