summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/numpages.cxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedricbosdo@openoffice.org>2010-09-14 15:33:58 +0200
committerCédric Bosdonnat <cedricbosdo@openoffice.org>2010-09-14 15:34:42 +0200
commit8e9c5a4285b3ab0213513f554a8f6c5656d9d8ba (patch)
tree5cd1f2a933e81311c45f62278ba59aad585a978c /cui/source/tabpages/numpages.cxx
parent68ee0b3cef504dfe65fff8c0f9212f7bf99c8cba (diff)
metric-field-limits.diff: maximum values were wrong when changing unit
Diffstat (limited to 'cui/source/tabpages/numpages.cxx')
-rw-r--r--cui/source/tabpages/numpages.cxx23
1 files changed, 0 insertions, 23 deletions
diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx
index 9bf88e151770..69fc047eff9e 100644
--- a/cui/source/tabpages/numpages.cxx
+++ b/cui/source/tabpages/numpages.cxx
@@ -3087,29 +3087,6 @@ SvxNumPositionTabPage::SvxNumPositionTabPage(Window* pParent,
pPreviewWIN->SetPositionMode();
eCoreUnit = rSet.GetPool()->GetMetric(rSet.GetPool()->GetWhich(SID_ATTR_NUMBERING_RULE));
- //HACK("der Wert sollte mal sinnvol gesetzt werden")
- long nWidth = 10000;
- nWidth = OutputDevice::LogicToLogic( nWidth,
- (MapUnit)eCoreUnit, MAP_100TH_MM );
-
- aDistBorderMF.SetMax(aDistBorderMF.Normalize( nWidth ), FUNIT_100TH_MM );
- aDistNumMF .SetMax(aDistNumMF .Normalize( nWidth ), FUNIT_100TH_MM );
- aIndentMF .SetMax(aIndentMF .Normalize( nWidth ), FUNIT_100TH_MM );
- // --> OD 2008-02-18 #newlistlevelattrs#
- aListtabMF.SetMax(aListtabMF.Normalize( nWidth ), FUNIT_100TH_MM );
- aAlignedAtMF.SetMax(aAlignedAtMF.Normalize( nWidth ), FUNIT_100TH_MM );
- aIndentAtMF.SetMax(aIndentAtMF.Normalize( nWidth ), FUNIT_100TH_MM );
- // <--
- long nLast2 = nWidth /2;
- aDistBorderMF.SetLast( aDistBorderMF.Normalize( nLast2 ), FUNIT_100TH_MM );
- aDistNumMF .SetLast( aDistNumMF .Normalize( nLast2 ), FUNIT_100TH_MM );
- aIndentMF .SetLast( aIndentMF .Normalize( nLast2 ), FUNIT_100TH_MM );
- // --> OD 2008-02-18 #newlistlevelattrs#
- aListtabMF.SetLast(aListtabMF.Normalize( nLast2 ), FUNIT_100TH_MM );
- aAlignedAtMF.SetLast(aAlignedAtMF.Normalize( nLast2 ), FUNIT_100TH_MM );
- aIndentAtMF.SetLast(aIndentAtMF.Normalize( nLast2 ), FUNIT_100TH_MM );
- // <--
-
#if OSL_DEBUG_LEVEL > 1
pDebugFixedText = new FixedText(this, 0);
pDebugFixedText->Show();