]> git.lyx.org Git - features.git/commitdiff
do not add ellipsis to closed inset label unless necessary
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 3 Aug 2003 21:42:44 +0000 (21:42 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 3 Aug 2003 21:42:44 +0000 (21:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7489 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetert.C

index fdc7c71fd7d4b6f9630b167b066e120e02711736..b04bf63a5ed65b0f2516b68346678517ce1177c6 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-03  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * insetert.C (get_new_label): only add ... to the (closed) label
+       when the string has been shortened
+
 2003-08-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
 
        * Always use std::endl with lyxerr
index f153d61e4c40e67420477c346e46ff380a789166..ea7e38384d854860ea1f7ff06b565c072bedcf41 100644 (file)
@@ -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()) {