]> git.lyx.org Git - features.git/commitdiff
use correct type of variable in appendString change tracking loop
authorStephan Witt <switt@lyx.org>
Sun, 16 Nov 2008 12:08:29 +0000 (12:08 +0000)
committerStephan Witt <switt@lyx.org>
Sun, 16 Nov 2008 12:08:29 +0000 (12:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27529 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 46c68501f9c5bd708a9614ea53b89a7e0e816dba..06290a9c7f9c97cb57b7df86c3dc3c451f592508 100644 (file)
@@ -1277,7 +1277,7 @@ void Paragraph::appendString(docstring const & s, Font const & font,
        d->text_.append(s);
 
        // FIXME: Optimize this!
-       for (pos_type i = oldsize; i != newsize; ++i) {
+       for (size_t i = oldsize; i != newsize; ++i) {
                // track change
                d->changes_.insert(change, i);
        }