summaryrefslogtreecommitdiff
path: root/svx/source/table
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-03-30 17:25:14 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-04-07 09:18:02 +0200
commit2aa1435c0ffcdef250452fd5e2b9f26912d874ad (patch)
tree5e204947a406fd5a9532ea7e7c542d235403066a /svx/source/table
parentaea29f64d7e57df35213854c3222a603774cf8ee (diff)
SvxTableController::setCursorLogicPosition: fix unexpected graphic selection
Without this, an editeng selection handle dragged to the next cell and turning into an Impress table selection triggers a graphic selection, too. Change-Id: Idf5e28f9b8d1ee8dacc6f869a17157e080f2c478
Diffstat (limited to 'svx/source/table')
-rw-r--r--svx/source/table/tablecontroller.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index 12c4bf6222c6..9a2dd80e9fb8 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -3172,8 +3172,12 @@ bool SvxTableController::setCursorLogicPosition(const Point& rPosition, bool bPo
return true;
}
else if (aCellPos != maMouseDownPos)
+ {
// No selection, but rPosition is at an other cell: start table selection.
StartSelection(maMouseDownPos);
+ // Update graphic selection, should be hidden now.
+ mpView->AdjustMarkHdl();
+ }
}
return false;