From: Jean-Marc Lasgouttes Date: Sun, 3 Aug 2003 21:42:44 +0000 (+0000) Subject: do not add ellipsis to closed inset label unless necessary X-Git-Tag: 1.6.10~16345 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=49dead313f664e18e8fbe7b1f323460a343ddbd8;p=features.git do not add ellipsis to closed inset label unless necessary git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7489 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index fdc7c71fd7..b04bf63a5e 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2003-08-03 Jean-Marc Lasgouttes + + * insetert.C (get_new_label): only add ... to the (closed) label + when the string has been shortened + 2003-08-02 Lars Gullik Bjønnes * Always use std::endl with lyxerr diff --git a/src/insets/insetert.C b/src/insets/insetert.C index f153d61e4c..ea7e38384d 100644 --- a/src/insets/insetert.C +++ b/src/insets/insetert.C @@ -516,7 +516,7 @@ string const InsetERT::get_new_label() const la += inset.paragraphs.begin()->getChar(j); ++i; } - if (p_siz > 1 || (i > 0 && j < p_siz)) { + if (inset.paragraphs.size() > 1 || (i > 0 && j < p_siz)) { la += "..."; } if (la.empty()) {