summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdmrkv.cxx
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-05-25 23:28:40 -0400
committerAndras Timar <andras.timar@collabora.com>2016-06-26 14:00:42 +0200
commite4542f83834e9d92f490433c364f37c82ccd4d2b (patch)
treea8800fdd956ed56d21379b03962d9b4b94a3605d /svx/source/svdraw/svdmrkv.cxx
parent626cf74c45aa3b33257de472cde37c825217db28 (diff)
bccu#1843 - Calc copy/paste chart tile invalidation problem
Reviewed-on: https://gerrit.libreoffice.org/25489 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com> (cherry picked from commit 28795d0faabd1e1be124fa90bef06d7f47a63311) Change-Id: I2f0bf28e87f4188abd81eb6c42bae915b2a046a8 Reviewed-on: https://gerrit.libreoffice.org/25490 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> (cherry picked from commit 33d4f7e5624d77ef1ce51aece1c8a0ef7ea21603)
Diffstat (limited to 'svx/source/svdraw/svdmrkv.cxx')
-rw-r--r--svx/source/svdraw/svdmrkv.cxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index eaf6f6246d3f..f10bc9ea549b 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -207,6 +207,31 @@ void SdrMarkView::ModelHasChanged()
if (pV!=nullptr && !pV->IsDragObj() && !pV->IsInsObjPoint()) {
AdjustMarkHdl();
}
+
+ if (comphelper::LibreOfficeKit::isActive())
+ {
+ //TODO: Is MarkedObjRect valid at this point?
+ Rectangle aSelection(GetMarkedObjRect());
+ OString sSelection;
+ if (aSelection.IsEmpty())
+ sSelection = "EMPTY";
+ else
+ {
+ // In case the map mode is in 100th MM, then need to convert the coordinates over to twips for LOK.
+ if (mpMarkedPV)
+ {
+ if (OutputDevice* pOutputDevice = mpMarkedPV->GetView().GetFirstOutputDevice())
+ {
+ if (pOutputDevice->GetMapMode().GetMapUnit() == MAP_100TH_MM)
+ aSelection = OutputDevice::LogicToLogic(aSelection, MAP_100TH_MM, MAP_TWIP);
+ }
+ }
+
+ sSelection = aSelection.toString();
+ }
+
+ GetModel()->libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sSelection.getStr());
+ }
}