diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-30 17:41:02 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-30 21:13:51 +0100 |
commit | 9dba6d07570984ad65652c614e992b1b7fa9fb74 (patch) | |
tree | 32edbfc797f5a8e3f6f573e085993a60e1cc3963 /cui/source | |
parent | 0b560a3ac7f66d8ba4140bcd6a8c73a455341eac (diff) |
No apparent reason to limit nXStart to sal_uInt16 instead of long
Change-Id: I19e846905bda86bb00826d337ee681b121c67407
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 e563c60b22cd..1ae07d522ed0 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -2357,7 +2357,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 ); short nTextOffset( 0 ); long nNumberXPos( 0 ); if (rFmt.GetPositionAndSpaceMode() == SvxNumberFormat::LABEL_WIDTH_AND_POSITION) @@ -2458,7 +2458,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool break; } - nXStart = static_cast<sal_uInt16>(rFmt.GetIndentAt() / nWidthRelation); + nXStart = rFmt.GetIndentAt() / nWidthRelation; } ::tools::Rectangle aRect1(Point(nTextXPos, nYStart + nFontHeight / 2), Size(aSize.Width() / 2, 2)); |