diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-31 14:51:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-31 15:06:32 +0100 |
commit | 36d75660ee5f3d2f9b433935e2c5d689767804fc (patch) | |
tree | f2f643736b52fd176c81305265ecdf3d4e701200 | |
parent | 9f36eba17042d14519de2409f7e3e581806b4ae6 (diff) |
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.grandin@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.grandin@collabora.co.uk>
-rw-r--r-- | include/svx/sdr/contact/viewcontactofsdrobj.hxx | 3 | ||||
-rw-r--r-- | svx/source/sdr/contact/viewcontactofsdrobj.cxx | 14 |
2 files changed, 17 insertions, 0 deletions
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 { |