Fraction->double in ResizeMarkedGluePoints

Change-Id: Iaee1c1a7827d14a94e60d152e0000f18adff86e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201746
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2026-03-18 18:53:08 +01:00
parent c3c424ed97
commit 9c4e67cf47
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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);
};
+1 -1
View File
@@ -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
{
+2 -2
View File
@@ -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<const Point*>(p1),*static_cast<const Fraction*>(p2),*static_cast<const Fraction*>(p3));
ResizePoint(rPt,*static_cast<const Point*>(p1),*static_cast<const double*>(p2),*static_cast<const double*>(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));