From ba92863f0a088f37179a8763de60ab7e08aff5a8 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 27 Mar 2009 17:57:42 +0000 Subject: [PATCH] Whitespace, formatting. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28948 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetCitation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp index 77bce69878..1dd3f72591 100644 --- a/src/insets/InsetCitation.cpp +++ b/src/insets/InsetCitation.cpp @@ -400,10 +400,10 @@ docstring InsetCitation:: toolTip(BufferView const & bv, int, int) const return _("No citations selected!"); vector keys = getVectorFromString(key); - vector::const_iterator it = keys.begin(); + vector::const_iterator it = keys.begin(); vector::const_iterator en = keys.end(); docstring tip; - for (; it != en; ++it) { + for (; it != en; ++it) { docstring key_info = bi.getInfo(*it); if (key_info.empty()) continue; @@ -416,7 +416,8 @@ docstring InsetCitation:: toolTip(BufferView const & bv, int, int) const for (; i >= 0; --i) if (key_info[i] == ' ') break; - if (i < 0) { // no space found? + if (i < 0) { + // no space found key_info = key_info.substr(0, maxwdth - 3) + "..."; break; } @@ -424,7 +425,6 @@ docstring InsetCitation:: toolTip(BufferView const & bv, int, int) const newkey += "\n"; newkey += key_info.substr(0, i); key_info = " " + key_info.substr(i); - //key_info = key_info.substr(0, maxtip - 3) + "..."; } if (!newkey.empty()) newkey += "\n"; -- 2.39.2