diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-30 17:19:33 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-30 21:13:50 +0100 |
commit | 4c82b221639688f79186487b304d6d9654096470 (patch) | |
tree | 41ee7208e367f7560f7d447a4ef1ee2fea60c3d0 | |
parent | 5925684856efcc16d7d8a284c236d43ae21599f8 (diff) |
No apparent reason to limit nTextOffset to sal_uInt16 instead of long
Change-Id: Idbd4e4aae63441537aff243d852272739b73f78e
-rw-r--r-- | cui/source/tabpages/numpages.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index efbdbb233499..e1869757cd5e 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -2506,13 +2506,13 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool } nXStart /= 2; nXStart += 2; - sal_uInt16 nTextOffset = 2 * nXStep; + long nTextOffset = 2 * nXStep; if (SVX_NUM_BITMAP == (rFmt.GetNumberingType()&(~LINK_TOKEN))) { if (rFmt.IsShowSymbol()) { sal_uInt16 nYMiddle = nYStart + ( nFontHeight / 2 ); - nTextOffset = static_cast<sal_uInt16>(lcl_DrawGraphic(pVDev.get(), rFmt, nXStart, nYMiddle, nWidthRelation)); + nTextOffset = lcl_DrawGraphic(pVDev.get(), rFmt, nXStart, nYMiddle, nWidthRelation); nTextOffset = nTextOffset + nXStep; } } @@ -2520,7 +2520,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool { if (rFmt.IsShowSymbol()) { - nTextOffset = static_cast<sal_uInt16>(lcl_DrawBullet(pVDev.get(), rFmt, nXStart, nYStart, aStdFont.GetFontSize())); + nTextOffset = lcl_DrawBullet(pVDev.get(), rFmt, nXStart, nYStart, aStdFont.GetFontSize()); nTextOffset = nTextOffset + nXStep; } } @@ -2540,7 +2540,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool OUString aText(pActNum->MakeNumString(aNum)); pVDev->DrawText(Point(nXStart, nYStart), aText); pVDev->SetFont(aStdFont); - nTextOffset = static_cast<sal_uInt16>(pVDev->GetTextWidth(aText)); + nTextOffset = pVDev->GetTextWidth(aText); nTextOffset = nTextOffset + nXStep; nPreNum++; } |