Kaydet (Commit) 3426cb60 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

No apparent reason to limit nNumberXPos to sal_uInt16 instead of long

Change-Id: Ic46fbb6ca905cc93943927117aa8c70beebee5a4
üst 4c82b221
...@@ -2359,7 +2359,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool ...@@ -2359,7 +2359,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool
sal_uInt16 nXStart( 0 ); sal_uInt16 nXStart( 0 );
short nTextOffset( 0 ); short nTextOffset( 0 );
sal_uInt16 nNumberXPos( 0 ); long nNumberXPos( 0 );
if (rFmt.GetPositionAndSpaceMode() == SvxNumberFormat::LABEL_WIDTH_AND_POSITION) if (rFmt.GetPositionAndSpaceMode() == SvxNumberFormat::LABEL_WIDTH_AND_POSITION)
{ {
nXStart = rFmt.GetAbsLSpace() / nWidthRelation; nXStart = rFmt.GetAbsLSpace() / nWidthRelation;
...@@ -2384,7 +2384,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool ...@@ -2384,7 +2384,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool
} }
else else
{ {
nNumberXPos = static_cast<sal_uInt16>(nTmpNumberXPos); nNumberXPos = nTmpNumberXPos;
} }
} }
......
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