setCursor(from.par(), from.pos());
if (to == from)
return;
- anchor() = cursor();
+ bv()->resetAnchor();
setCursor(to.par(), to.pos());
setSelection();
}
selection.set(true); // to avoid deletion
cursorRightOneWord();
setCursor(tmpcursor, tmpcursor.par(), tmpcursor.pos());
- anchor() = cursor();
+ bv()->resetAnchor();
cursor() = tmpcursor;
setSelection();
cutSelection(true, false);
selection.set(true); // to avoid deletion
cursorLeftOneWord();
setCursor(tmpcursor, tmpcursor.par(), tmpcursor.pos());
- anchor() = cursor();
+ bv()->resetAnchor();
cursor() = tmpcursor;
setSelection();
cutSelection(true, false);
selection.set(true); // to avoid deletion
cursorEnd();
setCursor(tmpcursor, tmpcursor.par(), tmpcursor.pos());
- anchor() = cursor();
+ bv()->resetAnchor();
cursor() = tmpcursor;
setSelection();
// What is this test for ??? (JMarc)
void LyXText::fullRebreak()
{
redoParagraphs(paragraphs().begin(), paragraphs().end());
- anchor() = cursor();
+ bv()->resetAnchor();
}
CursorSlice & LyXText::cursor()
{
- return bv()->cursor().top();
+ return bv()->cursor();
}
CursorSlice const & LyXText::cursor() const
{
- return bv()->cursor().top();
+ return bv()->cursor();
}
CursorSlice & LyXText::anchor()
{
- return anchor_;
+ return bv()->anchor();
}
CursorSlice const & LyXText::anchor() const
{
- return anchor_;
+ return bv()->anchor();
}
{
selection.set(false);
selection.mark(false);
- anchor() = cursor();
+ bv()->resetAnchor();
// reset this in the bv()!
if (bv() && bv()->text())
bv()->unsetXSel();