svx/source/sdr/contact/viewobjectcontact.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 681e10eecf67a1a01bdec2cc9b834e0345e25206
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Dec 9 11:12:49 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Dec 9 18:00:10 2021 +0100

    tdf#146137 tdf#146132 image redrawing
    
    regression from
        commit fe6a140a537eda1b6703c44ff5ee49d2ba875b81
        Author: Noel Grandin <noel.gran...@collabora.co.uk>
        Date:   Tue Dec 7 14:55:13 2021 +0200
        used cache value in ViewObjectContact::getPrimitive2DSequence
    
    we need to blow away the cached data when the object changes
    
    Change-Id: I3be8d57b166b6f7e3a04bd8fc34c83eed5ff8857
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126573
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/svx/source/sdr/contact/viewobjectcontact.cxx 
b/svx/source/sdr/contact/viewobjectcontact.cxx
index f87e8dcbef45..9dcac9eb153c 100644
--- a/svx/source/sdr/contact/viewobjectcontact.cxx
+++ b/svx/source/sdr/contact/viewobjectcontact.cxx
@@ -208,6 +208,9 @@ const basegfx::B2DRange& 
ViewObjectContact::getObjectRange() const
 
 void ViewObjectContact::ActionChanged()
 {
+    // clear cached primitives
+    mxPrimitive2DSequence.clear();
+
     if(mbLazyInvalidate)
         return;
 

Reply via email to