Minor fixups.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29561 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-05-07 13:53:28 +00:00
parent 73b48c22e5
commit cc23968475

View File

@ -1028,13 +1028,13 @@ string const getStringFromVector(vector<string> const & vec,
string const & delim)
{
string str;
int i = 0;
for (vector<string>::const_iterator it = vec.begin();
it != vec.end(); ++it) {
vector<string>::const_iterator it = vec.begin();
vector<string>::const_iterator en = vec.end();
for (; it != en; ++it) {
string item = trim(*it);
if (item.empty())
continue;
if (i++ > 0)
if (!str.empty())
str += delim;
str += item;
}