diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-26 07:26:46 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-26 09:34:49 +0100 |
commit | 10692be9472584c2dc49d298afd0192fb9ebfe86 (patch) | |
tree | 0f8e65841468e2a062f15b93d05fb943683fe1d0 /svx | |
parent | d0451dcf96508bf4d75c8147168f974ad3ebf03f (diff) |
tdf#146876 PPTX: various graphical elements misplaced
Revert "use cache value in ViewContact"
This reverts commit 2e162bb1e8521ad8cd8148e0a18adc3eebadd710.
Apparently invalidation is not reliable anywhere for ViewContact
Change-Id: I1ec40f27de77859a55bf00b80d029fa7181b4492
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128949
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/contact/viewcontact.cxx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/svx/source/sdr/contact/viewcontact.cxx b/svx/source/sdr/contact/viewcontact.cxx index 55af6ab6cd4f..bd79bc5ed4ac 100644 --- a/svx/source/sdr/contact/viewcontact.cxx +++ b/svx/source/sdr/contact/viewcontact.cxx @@ -26,8 +26,6 @@ #include <drawinglayer/primitive2d/PolygonHairlinePrimitive2D.hxx> #include <osl/diagnose.h> #include <tools/debug.hxx> -#include <svx/svdobj.hxx> -#include <svx/svdmodel.hxx> namespace sdr::contact { @@ -186,8 +184,6 @@ void ViewContact::ActionChildInserted(ViewContact& rChild) // React on changes of the object of this ViewContact void ViewContact::ActionChanged() { - mxViewIndependentPrimitive2DSequence.clear(); // clear cache - // propagate change to all existing VOCs. This will invalidate // all drawn visualisations in all known views const sal_uInt32 nCount(maViewObjectContactVector.size()); @@ -233,17 +229,6 @@ void ViewContact::createViewIndependentPrimitive2DSequence( void ViewContact::getViewIndependentPrimitive2DContainer( drawinglayer::primitive2d::Primitive2DDecompositionVisitor& rVisitor) const { - // only some of the top-level apps are any good at reliably invalidating us (e.g. writer is not) - if (SdrObject* pSdrObj = TryToGetSdrObject()) - if (pSdrObj->getSdrModelFromSdrObject().IsVOCInvalidationIsReliable()) - { - if (!mxViewIndependentPrimitive2DSequence.empty()) - { - rVisitor.visit(mxViewIndependentPrimitive2DSequence); - return; - } - } - /* Local up-to-date checks. Create new list and compare. We cannot just always use the new data because the old data has cached bitmaps in it e.g. see the document in tdf#146108. */ |