]> git.lyx.org Git - features.git/commitdiff
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4650
authorAbdelrazak Younes <younes@lyx.org>
Thu, 22 May 2008 22:04:38 +0000 (22:04 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 22 May 2008 22:04:38 +0000 (22:04 +0000)
This bug dates back to my cleanup of the Paragraph class; amazing that nobody noticed it before.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24891 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 1e86b52fd3290f132a7201bca61f17140e8b8531..1c8614f65222c237d880cc9b35b3c3e8a405d5e8 100644 (file)
@@ -1212,7 +1212,7 @@ void Paragraph::appendString(docstring const & s, Font const & font,
        d->text_.append(s);
 
        // FIXME: Optimize this!
-       for (pos_type i = 0; i != end; ++i) {
+       for (pos_type i = oldsize; i != newsize; ++i) {
                // track change
                d->changes_.insert(change, i);
        }