]> git.lyx.org Git - features.git/blobdiff - src/insets/insettext.C
hide cursor and selection anchor behind accessor function
[features.git] / src / insets / insettext.C
index fe8fb5670838132319671cfc215aad13d0aebf53..f1287bf7b105ed98e2df9dcdd206ea1b38f84c98 100644 (file)
@@ -236,14 +236,14 @@ void InsetText::updateLocal(BufferView * bv)
                collapseParagraphs(bv);
 
        if (!text_.selection.set())
-               text_.selection.cursor = text_.cursor;
+               text_.anchor() = text_.cursor();
 
        bv->owner()->view_state_changed();
        bv->owner()->updateMenubar();
        bv->owner()->updateToolbar();
-       if (old_par != text_.cursor.par()) {
+       if (old_par != text_.cursor().par()) {
                bv->owner()->setLayout(text_.cursorPar()->layout()->name());
-               old_par = text_.cursor.par();
+               old_par = text_.cursor().par();
        }
 }