Paragraph::appendString(): use docstring::append().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21173 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-10-24 09:01:51 +00:00
parent 23f89b8d35
commit 75febee877

View File

@ -1222,12 +1222,13 @@ void Paragraph::appendString(docstring const & s, Font const & font,
if (newsize >= capacity)
d->text_.reserve(std::max(capacity + 100, newsize));
// when appending characters, no need to update tables
d->text_.append(s);
// FIXME: Optimize this!
for (pos_type i = 0; i != end; ++i) {
// track change
d->changes_.insert(change, i);
// when appending characters, no need to update tables
d->text_.push_back(s[i]);
}
d->fontlist_.setRange(oldsize, newsize, font);
}