svx/source/inc/svdpdf.hxx | 4 ++-- svx/source/svdraw/svdpdf.cxx | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-)
New commits: commit d40d2dcd8adbb589896e8325fc47a7ad56ff9092 Author: Noel Grandin <[email protected]> AuthorDate: Tue Mar 24 13:44:14 2026 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Tue Mar 24 17:14:37 2026 +0100 Fraction->double in ImpSdrPdfImport Change-Id: Id9c82631d92cff6721aa9f2a5a44a030ac001622 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202593 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> diff --git a/svx/source/inc/svdpdf.hxx b/svx/source/inc/svdpdf.hxx index 6334d9eb6b81..c6dad1b4df4e 100644 --- a/svx/source/inc/svdpdf.hxx +++ b/svx/source/inc/svdpdf.hxx @@ -105,8 +105,8 @@ class ImpSdrPdfImport final Point maOfs; double mfScaleX; double mfScaleY; - Fraction maScaleX; - Fraction maScaleY; + double maScaleX; + double maScaleY; bool mbFntDirty; diff --git a/svx/source/svdraw/svdpdf.cxx b/svx/source/svdraw/svdpdf.cxx index 6a10ae9bde60..cd224716eb79 100644 --- a/svx/source/svdraw/svdpdf.cxx +++ b/svx/source/svdraw/svdpdf.cxx @@ -463,18 +463,18 @@ void ImpSdrPdfImport::SetupPageScale(const double dPageWidth, const double dPage mbMov = maOfs.X() != 0 || maOfs.Y() != 0; mbSize = false; - maScaleX = Fraction(1, 1); - maScaleY = Fraction(1, 1); + maScaleX = 1.0; + maScaleY = 1.0; if (aPageSize.Width() != aScaleRectSize.Width()) { - maScaleX = Fraction(aScaleRectSize.Width(), aPageSize.Width()); + maScaleX = double(aScaleRectSize.Width()) / aPageSize.Width(); mbSize = true; } if (aPageSize.Height() != aScaleRectSize.Height()) { - maScaleY = Fraction(aScaleRectSize.Height(), aPageSize.Height()); + maScaleY = double(aScaleRectSize.Height()) / aPageSize.Height(); mbSize = true; } } @@ -690,7 +690,7 @@ void ImpSdrPdfImport::InsertObj(SdrObject* pObj1, bool bScale) { if (mbSize) { - pObj->NbcResize(Point(), double(maScaleX), double(maScaleY)); + pObj->NbcResize(Point(), maScaleX, maScaleY); } if (mbMov)
