]> git.lyx.org Git - lyx.git/blobdiff - src/Text2.cpp
Next step in fixing problems noted by Vincent: Remove magic boolean from
[lyx.git] / src / Text2.cpp
index fc7a337105ceb529eb19f6cc2b066cd3a23d07cf..0b4b5e33fb2c16c5794caf787e2fa1f5bded5bae 100644 (file)
@@ -231,7 +231,7 @@ void Text::setLayout(Cursor & cur, docstring const & layout)
        pit_type undopit = undoSpan(end - 1);
        recUndo(cur, start, undopit - 1);
        setLayout(start, end, layout);
-       cur.buffer()->updateBuffer();
+       cur.forceBufferUpdate();
 }
 
 
@@ -290,7 +290,7 @@ void Text::changeDepth(Cursor & cur, DEPTH_CHANGE type)
        }
        // this handles the counter labels, and also fixes up
        // depth values for follow-on (child) paragraphs
-       cur.buffer()->updateBuffer();
+       cur.forceBufferUpdate();
 }