From 9c4e67cf47ff1e7d51bec7458f94b41c054de30a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 15 Mar 2026 20:31:37 +0200 Subject: [PATCH] Fraction->double in ResizeMarkedGluePoints Change-Id: Iaee1c1a7827d14a94e60d152e0000f18adff86e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201746 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/svx/svdglev.hxx | 2 +- svx/source/svdraw/svddrgmt.cxx | 2 +- svx/source/svdraw/svdglev.cxx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/svx/svdglev.hxx b/include/svx/svdglev.hxx index 1356033d25d0..d6967e16ae39 100644 --- a/include/svx/svdglev.hxx +++ b/include/svx/svdglev.hxx @@ -76,7 +76,7 @@ public: SAL_DLLPRIVATE void DeleteMarkedGluePoints(); SAL_DLLPRIVATE void MoveMarkedGluePoints (const Size& rSiz, bool bCopy); - SAL_DLLPRIVATE void ResizeMarkedGluePoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bCopy); + SAL_DLLPRIVATE void ResizeMarkedGluePoints(const Point& rRef, double xFact, double yFact, bool bCopy); SAL_DLLPRIVATE void RotateMarkedGluePoints(const Point& rRef, Degree100 nAngle, bool bCopy); }; diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx index eb1ec0f9ad08..e2b32225bf3c 100644 --- a/svx/source/svdraw/svddrgmt.cxx +++ b/svx/source/svdraw/svddrgmt.cxx @@ -2032,7 +2032,7 @@ bool SdrDragResize::EndSdrDrag(bool bCopy) } else if (IsDraggingGluePoints()) { - getSdrDragView().ResizeMarkedGluePoints(DragStat().GetRef1(),Fraction(m_aXFact),Fraction(m_aYFact),bCopy); + getSdrDragView().ResizeMarkedGluePoints(DragStat().GetRef1(),m_aXFact,m_aYFact,bCopy); } else { diff --git a/svx/source/svdraw/svdglev.cxx b/svx/source/svdraw/svdglev.cxx index e2b2076b959a..5d41f495dee7 100644 --- a/svx/source/svdraw/svdglev.cxx +++ b/svx/source/svdraw/svdglev.cxx @@ -372,10 +372,10 @@ void SdrGlueEditView::MoveMarkedGluePoints(const Size& rSiz, bool bCopy) static void ImpResize(Point& rPt, const void* p1, const void* p2, const void* p3, const void* /*p4*/) { - ResizePoint(rPt,*static_cast(p1),*static_cast(p2),*static_cast(p3)); + ResizePoint(rPt,*static_cast(p1),*static_cast(p2),*static_cast(p3)); } -void SdrGlueEditView::ResizeMarkedGluePoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bCopy) +void SdrGlueEditView::ResizeMarkedGluePoints(const Point& rRef, double xFact, double yFact, bool bCopy) { ForceUndirtyMrkPnt(); OUString aStr(SvxResId(STR_EditResize));