summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdoashp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdoashp.cxx')
-rw-r--r--svx/source/svdraw/svdoashp.cxx50
1 files changed, 0 insertions, 50 deletions
diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx
index 26a947a830cb..0479eb198dcd 100644
--- a/svx/source/svdraw/svdoashp.cxx
+++ b/svx/source/svdraw/svdoashp.cxx
@@ -2913,31 +2913,6 @@ void SdrObjCustomShape::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix,
aGeo.nShearAngle = 0;
aGeo.RecalcTan();
- // force metric to pool metric
- const MapUnit eMapUnit(GetObjectMapUnit());
- if(eMapUnit != MapUnit::Map100thMM)
- {
- switch(eMapUnit)
- {
- case MapUnit::MapTwip :
- {
- // position
- aTranslate.setX(ImplMMToTwips(aTranslate.getX()));
- aTranslate.setY(ImplMMToTwips(aTranslate.getY()));
-
- // size
- aScale.setX(ImplMMToTwips(aScale.getX()));
- aScale.setY(ImplMMToTwips(aScale.getY()));
-
- break;
- }
- default:
- {
- OSL_FAIL("TRSetBaseGeometry: Missing unit translation to PoolMetric!");
- }
- }
- }
-
// if anchor is used, make position relative to it
if(getSdrModelFromSdrObject().IsWriter())
{
@@ -3064,31 +3039,6 @@ bool SdrObjCustomShape::TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, basegf
}
}
- // force MapUnit to 100th mm
- const MapUnit eMapUnit(GetObjectMapUnit());
- if(eMapUnit != MapUnit::Map100thMM)
- {
- switch(eMapUnit)
- {
- case MapUnit::MapTwip :
- {
- // position
- aTranslate.setX(ImplTwipsToMM(aTranslate.getX()));
- aTranslate.setY(ImplTwipsToMM(aTranslate.getY()));
-
- // size
- aScale.setX(ImplTwipsToMM(aScale.getX()));
- aScale.setY(ImplTwipsToMM(aScale.getY()));
-
- break;
- }
- default:
- {
- OSL_FAIL("TRGetBaseGeometry: Missing unit translation to 100th mm!");
- }
- }
- }
-
// build matrix
rMatrix = basegfx::utils::createScaleShearXRotateTranslateB2DHomMatrix(
aScale,