summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-30 17:43:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-30 21:13:51 +0100
commit572301284171ee0503cc7705556eb0286299f5ff (patch)
tree209e07d7ac0b688f10159c4412d9815d77500740 /cui
parentac2fb48f27dcb612c601ed7ac2754f89fd0bf1aa (diff)
No apparent reason to limit nTextXPos to sal_uInt16 instead of long
Change-Id: I7142252aa6c42c74c7f2d7407db1cb243090195e
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/numpages.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx
index 7492392a8b45..42324f87b83c 100644
--- a/cui/source/tabpages/numpages.cxx
+++ b/cui/source/tabpages/numpages.cxx
@@ -2428,7 +2428,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool
nBulletWidth = nBulletWidth + pVDev->GetTextWidth(aText);
}
- sal_uInt16 nTextXPos( 0 );
+ long nTextXPos( 0 );
if (rFmt.GetPositionAndSpaceMode() == SvxNumberFormat::LABEL_WIDTH_AND_POSITION)
{
nTextXPos = nXStart;
@@ -2443,7 +2443,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool
{
case SvxNumberFormat::LISTTAB:
{
- nTextXPos = static_cast<sal_uInt16>(rFmt.GetListtabPos() / nWidthRelation);
+ nTextXPos = rFmt.GetListtabPos() / nWidthRelation;
if (nTextXPos < nNumberXPos + nBulletWidth)
{
nTextXPos = nNumberXPos + nBulletWidth;