Kaydet (Commit) 836b5ac3 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Make nOffs be long from the start

...implicitly casting it to smaller types where necessary, instead of the other
way around

Change-Id: Ib7673fbae016b0c91bf37d6768692fa99ccae46c
Reviewed-on: https://gerrit.libreoffice.org/48955Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst b3ebd1ed
......@@ -1989,7 +1989,7 @@ SwNumRule* DocumentStylePoolManager::GetNumRuleFromPool( sal_uInt16 nId )
aFormat.SetIncludeUpperLevels( 1 );
aFormat.SetSuffix( "." );
sal_uInt16 nOffs = 397; // 0.70 cm
long const nOffs = 397; // 0.70 cm
if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
{
......@@ -2009,7 +2009,7 @@ SwNumRule* DocumentStylePoolManager::GetNumRuleFromPool( sal_uInt16 nId )
}
else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
{
long nPos = (n+1) * static_cast<long>(nOffs);
long nPos = (n+1) * nOffs;
aFormat.SetListtabPos(nPos + 357);
aFormat.SetIndentAt(nPos + 357);
}
......
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