From d9253918391fab227da4b8a4d5eaee29a3306878 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 30 Jan 2018 17:30:13 +0100 Subject: No apparent reason to limit nXStart to sal_uInt16 instead of long Change-Id: I6775c36c9b0eb3b1e56968b4ca212fcd43a3be1b --- cui/source/tabpages/numpages.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cui/source') 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(nTmpXStart); + nXStart = nTmpXStart; } } nXStart /= 2; -- cgit