Kaydet (Commit) c6f03d6f authored tarafından Miklos Vajna's avatar Miklos Vajna

ImpEditView::SetCursorAtPoint tiled rendering: avoid partial selections

Same problem as in the previous commit, just for mouse move. Previously
when selecting "abc" with the mouse only one or zero letter got selected
as the mouse moved, now it's properly the whole afffected string.

Change-Id: I025dbd71fc02a0c93a532ca188836ffb957d6b35
üst 18e08580
...@@ -1531,8 +1531,8 @@ bool ImpEditView::SetCursorAtPoint( const Point& rPointPixel ) ...@@ -1531,8 +1531,8 @@ bool ImpEditView::SetCursorAtPoint( const Point& rPointPixel )
EditPaM aPaM = pEditEngine->GetPaM(aDocPos); EditPaM aPaM = pEditEngine->GetPaM(aDocPos);
bool bGotoCursor = DoAutoScroll(); bool bGotoCursor = DoAutoScroll();
// aTmpNewSel: Diff between old and new, not the new selection // aTmpNewSel: Diff between old and new, not the new selection, unless tiled rendering
EditSelection aTmpNewSel( GetEditSelection().Max(), aPaM ); EditSelection aTmpNewSel( isTiledRendering() ? GetEditSelection().Min() : GetEditSelection().Max(), aPaM );
// #i27299# // #i27299#
// work on copy of current selection and set new selection, if it has changed. // work on copy of current selection and set new selection, if it has changed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment