mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
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:
parent
23f89b8d35
commit
75febee877
@ -1222,12 +1222,13 @@ void Paragraph::appendString(docstring const & s, Font const & font,
|
|||||||
if (newsize >= capacity)
|
if (newsize >= capacity)
|
||||||
d->text_.reserve(std::max(capacity + 100, newsize));
|
d->text_.reserve(std::max(capacity + 100, newsize));
|
||||||
|
|
||||||
|
// when appending characters, no need to update tables
|
||||||
|
d->text_.append(s);
|
||||||
|
|
||||||
// FIXME: Optimize this!
|
// FIXME: Optimize this!
|
||||||
for (pos_type i = 0; i != end; ++i) {
|
for (pos_type i = 0; i != end; ++i) {
|
||||||
// track change
|
// track change
|
||||||
d->changes_.insert(change, i);
|
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);
|
d->fontlist_.setRange(oldsize, newsize, font);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user