diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2023-01-30 14:44:01 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-01-31 05:47:27 +0000 |
commit | 743dd1d3c1142c1c99b0844cc26dd0be91a1de40 (patch) | |
tree | 96140d26268c3be0cb16e2b805558bd2ad8a9e29 /svx/source/customshapes/EnhancedCustomShape3d.cxx | |
parent | 326dec315c29028ad1c163020d518e1236f37b6b (diff) |
SdrModel: we never set scale fraction to anything else than 1/1
This removes the scale fraction on SdrModel - SetScaleFraction and
the m_aObjUnit instance variable, as it is never set to anything
else than 1/1 (and don't see it usefult to set it to anything else
than this).
Change-Id: I990d20f110b3be00e6770b68e39df212f9c576be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146348
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx/source/customshapes/EnhancedCustomShape3d.cxx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShape3d.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape3d.cxx b/svx/source/customshapes/EnhancedCustomShape3d.cxx index baaf37a4162c..9a0ef6bebf92 100644 --- a/svx/source/customshapes/EnhancedCustomShape3d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape3d.cxx @@ -238,7 +238,7 @@ rtl::Reference<SdrObject> EnhancedCustomShape3d::Create3DObject( rtl::Reference<SdrObject> pRet; const SdrCustomShapeGeometryItem& rGeometryItem(rSdrObjCustomShape.GetMergedItem(SDRATTR_CUSTOMSHAPE_GEOMETRY)); double fMap(1.0), *pMap = nullptr; - Fraction aFraction( rSdrObjCustomShape.getSdrModelFromSdrObject().GetScaleFraction() ); + Fraction aFraction(1, 1); if ( aFraction.GetNumerator() != 1 || aFraction.GetDenominator() != 1 ) { |