include/svx/sdr/contact/viewcontactofsdrobj.hxx |    3 +++
 svx/source/sdr/contact/viewcontactofsdrobj.cxx  |   14 ++++++++++++++
 2 files changed, 17 insertions(+)

New commits:
commit 36d75660ee5f3d2f9b433935e2c5d689767804fc
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Mon Jan 31 14:51:05 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon Jan 31 15:06:32 2022 +0100

    tdf#146860 Vertical alignment of text inside grouped shapes textbox 
incorrect
    
    some stupid side effect at work
    
    regression from
        commit c1916d3ab8f764e465f889334050ce7c863576b3
        Author: Noel Grandin <noel.gran...@collabora.co.uk>
        Date:   Wed Dec 8 12:25:58 2021 +0200
        meRememberedAnimationKind is dead
    
    Change-Id: I7ba245a2096ed011f88e08f9d3a87021948e0b01
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129219
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/include/svx/sdr/contact/viewcontactofsdrobj.hxx 
b/include/svx/sdr/contact/viewcontactofsdrobj.hxx
index d7c432643f92..788c8058d9f5 100644
--- a/include/svx/sdr/contact/viewcontactofsdrobj.hxx
+++ b/include/svx/sdr/contact/viewcontactofsdrobj.hxx
@@ -55,6 +55,9 @@ public:
     virtual ViewContact& GetViewContact(sal_uInt32 nIndex) const override;
     virtual ViewContact* GetParentContact() const override;
 
+    // React on changes of the object of this ViewContact
+    virtual void ActionChanged() override;
+
     /// override for accessing the SdrObject
     virtual SdrObject* TryToGetSdrObject() const override;
 
diff --git a/svx/source/sdr/contact/viewcontactofsdrobj.cxx 
b/svx/source/sdr/contact/viewcontactofsdrobj.cxx
index 3973f5349038..1483b57645f8 100644
--- a/svx/source/sdr/contact/viewcontactofsdrobj.cxx
+++ b/svx/source/sdr/contact/viewcontactofsdrobj.cxx
@@ -94,6 +94,20 @@ ViewContact* ViewContactOfSdrObj::GetParentContact() const
     return pRetval;
 }
 
+// React on changes of the object of this ViewContact
+void ViewContactOfSdrObj::ActionChanged()
+{
+    // look for own changes
+    if (SdrTextObj* pTextObj = dynamic_cast<SdrTextObj*>(&GetSdrObject()))
+    {
+        //  tdf#146860 no idea why, but calling this makes the text boxes 
render properly
+        pTextObj->GetTextAniKind();
+    }
+
+    // call parent
+    ViewContact::ActionChanged();
+}
+
 // override for accessing the SdrObject
 SdrObject* ViewContactOfSdrObj::TryToGetSdrObject() const
 {

Reply via email to