diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-30 17:30:13 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-30 21:13:50 +0100 |
commit | d9253918391fab227da4b8a4d5eaee29a3306878 (patch) | |
tree | 3366f653261284f2c2d1abd53364c59823e1896e /cui/source | |
parent | a7a9919b538a5478cfbd2c137a0f80b02b67e136 (diff) |
No apparent reason to limit nXStart to sal_uInt16 instead of long
Change-Id: I6775c36c9b0eb3b1e56968b4ca212fcd43a3be1b
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/tabpages/numpages.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index f80cd5cc346c..c7605255b7cf 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -2485,7 +2485,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool { const SvxNumberFormat &rFmt = pActNum->GetLevel(nLevel); aNum.GetLevelVal()[ nLevel ] = rFmt.GetStart(); - sal_uInt16 nXStart( 0 ); + long nXStart( 0 ); pVDev->SetFillColor( aBackColor ); if (rFmt.GetPositionAndSpaceMode() == SvxNumberFormat::LABEL_WIDTH_AND_POSITION) @@ -2501,7 +2501,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool } else { - nXStart = static_cast<sal_uInt16>(nTmpXStart); + nXStart = nTmpXStart; } } nXStart /= 2; |