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
This commit is contained in:
Jean-Marc Lasgouttes 2003-08-03 21:42:44 +00:00
parent 557a50555c
commit 49dead313f
2 changed files with 6 additions and 1 deletions

View 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

View 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()) {