summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdopath.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdopath.cxx')
-rw-r--r--svx/source/svdraw/svdopath.cxx62
1 files changed, 0 insertions, 62 deletions
diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx
index 5270b223dc77..01e5df703421 100644
--- a/svx/source/svdraw/svdopath.cxx
+++ b/svx/source/svdraw/svdopath.cxx
@@ -2894,37 +2894,6 @@ bool SdrPathObj::TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, basegfx::B2DP
}
}
- // 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()));
-
- // polygon
- basegfx::B2DHomMatrix aTwipsToMM;
- const double fFactorTwipsToMM(127.0 / 72.0);
- aTwipsToMM.scale(fFactorTwipsToMM, fFactorTwipsToMM);
- rPolyPolygon.transform(aTwipsToMM);
-
- break;
- }
- default:
- {
- OSL_FAIL("TRGetBaseGeometry: Missing unit translation to 100th mm!");
- }
- }
- }
-
// build return value matrix
rMatrix = basegfx::utils::createScaleShearXRotateTranslateB2DHomMatrix(
aScale,
@@ -2964,37 +2933,6 @@ void SdrPathObj::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, const b
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()));
-
- // polygon
- basegfx::B2DHomMatrix aMMToTwips;
- const double fFactorMMToTwips(72.0 / 127.0);
- aMMToTwips.scale(fFactorMMToTwips, fFactorMMToTwips);
- aNewPolyPolygon.transform(aMMToTwips);
-
- break;
- }
- default:
- {
- OSL_FAIL("TRSetBaseGeometry: Missing unit translation to PoolMetric!");
- }
- }
- }
-
if( getSdrModelFromSdrObject().IsWriter() )
{
// if anchor is used, make position relative to it