svdopath.cxx (39335fce) svdopath.cxx (7ed960da)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 2948 unchanged lines hidden (view full) ---

2957 {
2958 if(GetAnchorPos().X() || GetAnchorPos().Y())
2959 {
2960 aTranslate -= basegfx::B2DTuple(GetAnchorPos().X(), GetAnchorPos().Y());
2961 }
2962 }
2963
2964 // force MapUnit to 100th mm
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 2948 unchanged lines hidden (view full) ---

2957 {
2958 if(GetAnchorPos().X() || GetAnchorPos().Y())
2959 {
2960 aTranslate -= basegfx::B2DTuple(GetAnchorPos().X(), GetAnchorPos().Y());
2961 }
2962 }
2963
2964 // force MapUnit to 100th mm
2965 SfxMapUnit eMapUnit = GetObjectItemSet().GetPool()->GetMetric(0);
2965 const SfxMapUnit eMapUnit(GetObjectMapUnit());
2966 if(eMapUnit != SFX_MAPUNIT_100TH_MM)
2967 {
2968 switch(eMapUnit)
2969 {
2970 case SFX_MAPUNIT_TWIP :
2971 {
2972 // postion
2973 aTranslate.setX(ImplTwipsToMM(aTranslate.getX()));

--- 53 unchanged lines hidden (view full) ---

3027
3028 // reset object shear and rotations
3029 aGeo.nDrehWink = 0;
3030 aGeo.RecalcSinCos();
3031 aGeo.nShearWink = 0;
3032 aGeo.RecalcTan();
3033
3034 // force metric to pool metric
2966 if(eMapUnit != SFX_MAPUNIT_100TH_MM)
2967 {
2968 switch(eMapUnit)
2969 {
2970 case SFX_MAPUNIT_TWIP :
2971 {
2972 // postion
2973 aTranslate.setX(ImplTwipsToMM(aTranslate.getX()));

--- 53 unchanged lines hidden (view full) ---

3027
3028 // reset object shear and rotations
3029 aGeo.nDrehWink = 0;
3030 aGeo.RecalcSinCos();
3031 aGeo.nShearWink = 0;
3032 aGeo.RecalcTan();
3033
3034 // force metric to pool metric
3035 SfxMapUnit eMapUnit = GetObjectItemSet().GetPool()->GetMetric(0);
3035 const SfxMapUnit eMapUnit(GetObjectMapUnit());
3036 if(eMapUnit != SFX_MAPUNIT_100TH_MM)
3037 {
3038 switch(eMapUnit)
3039 {
3040 case SFX_MAPUNIT_TWIP :
3041 {
3042 // position
3043 aTranslate.setX(ImplMMToTwips(aTranslate.getX()));

--- 78 unchanged lines hidden ---
3036 if(eMapUnit != SFX_MAPUNIT_100TH_MM)
3037 {
3038 switch(eMapUnit)
3039 {
3040 case SFX_MAPUNIT_TWIP :
3041 {
3042 // position
3043 aTranslate.setX(ImplMMToTwips(aTranslate.getX()));

--- 78 unchanged lines hidden ---