summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2016-09-23 17:14:29 -0400
committerHenry Castro <hcastro@collabora.com>2016-09-24 08:40:46 -0400
commit5d3f237bf1d706adea8fa74e24079810bfc87351 (patch)
tree164468afc93ff5044200801c13bd68bfd569dad5 /svx
parenta17c9971a3a1e3139719d90320a1757107e09cb1 (diff)
sc lok: avoid full invalidate tiles
Change-Id: Idd49dc61ba8dbd7af42f641bb019cf83814f9e8d Reviewed-on: https://gerrit.libreoffice.org/29240 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/sdrpaintwindow.cxx6
-rw-r--r--svx/source/svdraw/svdmrkv.cxx2
2 files changed, 6 insertions, 2 deletions
diff --git a/svx/source/svdraw/sdrpaintwindow.cxx b/svx/source/svdraw/sdrpaintwindow.cxx
index c18bfa5f3a46..ca401765f862 100644
--- a/svx/source/svdraw/sdrpaintwindow.cxx
+++ b/svx/source/svdraw/sdrpaintwindow.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <comphelper/lok.hxx>
#include <comphelper/random.hxx>
#include <svx/sdrpaintwindow.hxx>
#include <sdr/overlay/overlaymanagerbuffered.hxx>
@@ -219,7 +220,10 @@ void SdrPaintWindow::impCreateOverlayManager()
// Request a repaint so that the buffered overlay manager fills
// its buffer properly. This is a workaround for missing buffer
// updates.
- rWindow.Invalidate();
+ if (!comphelper::LibreOfficeKit::isActive())
+ {
+ rWindow.Invalidate();
+ }
Color aColA(GetPaintView().getOptionsDrawinglayer().GetStripeColorA());
Color aColB(GetPaintView().getOptionsDrawinglayer().GetStripeColorB());
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index 20ff410e82ce..1e779ab84e05 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -209,7 +209,7 @@ void SdrMarkView::ModelHasChanged()
AdjustMarkHdl();
}
- if (comphelper::LibreOfficeKit::isActive())
+ if (comphelper::LibreOfficeKit::isActive() && GetMarkedObjectCount() > 0)
{
//TODO: Is MarkedObjRect valid at this point?
Rectangle aSelection(GetMarkedObjRect());