]> git.lyx.org Git - features.git/blobdiff - src/BufferView.cpp
Rename anchor() to normalAnchor() as the anchor() function was already returning...
[features.git] / src / BufferView.cpp
index 4afcda8158f0951f12ab1adf1572e52593a432d1..9a922f997febadca3a0f3e024287725fc775bdbc 100644 (file)
@@ -2258,7 +2258,7 @@ bool BufferView::mouseSetCursor(Cursor & cur, bool select)
                d->cursor_.fixIfBroken();
 
        // FIXME: shift-mouse selection doesn't work well across insets.
-       bool do_selection = select && &d->cursor_.anchor().inset() == &cur.inset();
+       bool do_selection = select && &d->cursor_.normalAnchor().inset() == &cur.inset();
 
        // do the dEPM magic if needed
        // FIXME: (1) move this to InsetText::notifyCursorLeaves?