From 89287ef7ee3215419bede76e70a6ff5fdd83ba07 Mon Sep 17 00:00:00 2001 From: Martin Vermeer Date: Fri, 24 Aug 2007 14:42:41 +0000 Subject: [PATCH] Oops -- cut off wrong part of label git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19771 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetCharStyle.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/insets/InsetCharStyle.cpp b/src/insets/InsetCharStyle.cpp index c163f49112..042cec2b8f 100644 --- a/src/insets/InsetCharStyle.cpp +++ b/src/insets/InsetCharStyle.cpp @@ -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; } }