Kaydet (Commit) 9537ddcf authored tarafından Miklos Vajna's avatar Miklos Vajna

editeng: nAnz -> nCount

Change-Id: Ieda943586c95e3edcd277dfa5e8586cc8c27867a
üst a936658e
...@@ -1863,19 +1863,19 @@ void SvxRTFParser::SetDefault( int nToken, int nValue ) ...@@ -1863,19 +1863,19 @@ void SvxRTFParser::SetDefault( int nToken, int nValue )
// Calculate the ratio of default TabWidth / Tabs and // Calculate the ratio of default TabWidth / Tabs and
// calculate the corresponding new number. // calculate the corresponding new number.
// ?? how did one come up with 13 ?? // ?? how did one come up with 13 ??
sal_uInt16 nAnzTabs = (SVX_TAB_DEFDIST * 13 ) / sal_uInt16(nValue); sal_uInt16 nTabCount = (SVX_TAB_DEFDIST * 13 ) / sal_uInt16(nValue);
/* /*
cmc, make sure we have at least one, or all hell breaks loose in cmc, make sure we have at least one, or all hell breaks loose in
everybodies exporters, #i8247# everybodies exporters, #i8247#
*/ */
if (nAnzTabs < 1) if (nTabCount < 1)
nAnzTabs = 1; nTabCount = 1;
// we want Defaulttabs // we want Defaulttabs
SvxTabStopItem aNewTab( nAnzTabs, sal_uInt16(nValue), SvxTabStopItem aNewTab( nTabCount, sal_uInt16(nValue),
SVX_TAB_ADJUST_DEFAULT, aPardMap.nTabStop ); SVX_TAB_ADJUST_DEFAULT, aPardMap.nTabStop );
while( nAnzTabs ) while( nTabCount )
((SvxTabStop&)aNewTab[ --nAnzTabs ]).GetAdjustment() = SVX_TAB_ADJUST_DEFAULT; ((SvxTabStop&)aNewTab[ --nTabCount ]).GetAdjustment() = SVX_TAB_ADJUST_DEFAULT;
pAttrPool->SetPoolDefaultItem( aNewTab ); pAttrPool->SetPoolDefaultItem( aNewTab );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment