summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-01-12 10:27:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-01-12 14:45:30 +0100
commit9a850dd9f3c221660b6259bdfd64a77343f2256c (patch)
treea358210df36d9df53e0e614a3bb702e0e604750c /sc
parenteebe4747d2d13545004937bb0267ccfc8ab9d63f (diff)
used cache value in ViewObjectContact::getPrimitive2DSequence (2nd attempt)
Rely on the cached primitives in VOC. But only enable it for calc and draw right now, by adding a flag at the SdrModel level. This way we can leave it disabled for writer, where it definitely doesn't work. Change-Id: I11ca4836eb773c0f078cdb82056c6e0309d15a8b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128319 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/drwlayer.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 3503ae9cd949..e5a11b57555e 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -239,6 +239,8 @@ ScDrawLayer::ScDrawLayer( ScDocument* pDocument, const OUString& rName ) :
bAdjustEnabled( true ),
bHyphenatorSet( false )
{
+ SetVOCInvalidationIsReliable(true);
+
pGlobalDrawPersist = nullptr; // Only use once
SfxObjectShell* pObjSh = pDocument ? pDocument->GetDocumentShell() : nullptr;