summaryrefslogtreecommitdiff
path: root/svx/source/engine3d/float3d.cxx
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2009-12-10 18:44:22 +0100
committerMathias Bauer <mba@openoffice.org>2009-12-10 18:44:22 +0100
commit6fc01200941161b365c953a182ccc8b9e5365104 (patch)
treef97f37818168c23d0b9cf6bde53170d03a5b2599 /svx/source/engine3d/float3d.cxx
parentbff3805b014f19e62edf7c6aa7716048c07cf689 (diff)
#i107450#: split up the two different ways to detect a module field unit
Diffstat (limited to 'svx/source/engine3d/float3d.cxx')
-rw-r--r--svx/source/engine3d/float3d.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/engine3d/float3d.cxx b/svx/source/engine3d/float3d.cxx
index 71a5ba2065f8..b57285709f75 100644
--- a/svx/source/engine3d/float3d.cxx
+++ b/svx/source/engine3d/float3d.cxx
@@ -307,7 +307,8 @@ __EXPORT Svx3DWin::Svx3DWin( SfxBindings* pInBindings,
FreeResource();
// Metrik einstellen
- eFUnit = GetModuleFieldUnit( NULL );
+ eFUnit = pInBindings->GetDispatcher()->GetModule()->GetModuleFieldUnit();
+
aMtrDepth.SetUnit( eFUnit );
aMtrDistance.SetUnit( eFUnit );
aMtrFocalLength.SetUnit( eFUnit );
@@ -509,7 +510,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
DBG_ASSERT( mpImpl->pPool, "Wo ist der Pool?" );
ePoolUnit = mpImpl->pPool->GetMetric( SID_ATTR_LINE_WIDTH );
}
- eFUnit = GetModuleFieldUnit( &rAttrs );
+ eFUnit = GetModuleFieldUnit( rAttrs );
// Segmentanzahl aenderbar ? und andere Stati
@@ -1754,7 +1755,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
DBG_ASSERT( mpImpl->pPool, "Wo ist der Pool?" );
ePoolUnit = mpImpl->pPool->GetMetric( SID_ATTR_LINE_WIDTH );
- eFUnit = GetModuleFieldUnit( &rAttrs );
+ eFUnit = GetModuleFieldUnit( rAttrs );
}
// Anzahl Segmente (horizontal)