diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2019-11-28 19:28:29 +0100 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-02-07 18:40:31 +0100 |
commit | 7efd182997cb29ed4820145efc99a6c18e2c3303 (patch) | |
tree | af5f2259e16516cb193e48916bb9e56f45b7f0df /include/svx/svdoashp.hxx | |
parent | fb2382ad4f33b885650ad5156ccaec4e90661806 (diff) |
tdf#119191 Implement SdrObjCustomShape::AdjustToMaxRect
and use in ScDrawLayer::RecalcPos and in ScDrawView::FitToCellSize().
Error was, that it was assumed, that SdObjCustomShape::SetSnapRect()
changes the shape so, that it fits into the passed rectangle. That is
true for other type of shapes, but not for custom shapes.
Change-Id: Ib00d52087509f459165000abf43c7f244980a01b
Reviewed-on: https://gerrit.libreoffice.org/84216
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
(cherry picked from commit f44140bebb9c493d97ba5aef26c9692c53a6b93f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85043
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'include/svx/svdoashp.hxx')
-rw-r--r-- | include/svx/svdoashp.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/svx/svdoashp.hxx b/include/svx/svdoashp.hxx index 02b957de95a0..ff51e20ec974 100644 --- a/include/svx/svdoashp.hxx +++ b/include/svx/svdoashp.hxx @@ -172,6 +172,7 @@ public: virtual void Shear(const Point& rRef, long nAngle, double tn, bool bVShear) override; virtual void SetSnapRect(const tools::Rectangle& rRect) override; virtual void SetLogicRect(const tools::Rectangle& rRect) override; + virtual void AdjustToMaxRect( const tools::Rectangle& rMaxRect, bool bShrinkOnly = false ) override; virtual void NbcMove(const Size& rSiz) override; virtual void NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact) override; |