]> git.lyx.org Git - features.git/blobdiff - src/bufferview_funcs.C
move the Selection structure from LyXText to BufferView
[features.git] / src / bufferview_funcs.C
index 13383258d6b27477f32bcc11a06e7c31a851ce84..93c26024dca4c76135ba2193e81bbc404b00d413 100644 (file)
@@ -256,11 +256,10 @@ string const currentState(BufferView * bv)
 }
 
 
-
 // deletes a selection during an insertion
 void replaceSelection(LyXText * text)
 {
-       if (text->selection.set()) {
+       if (text->bv()->selection().set()) {
                text->cutSelection(true, false);
                text->bv()->update();
        }