summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-30 17:33:48 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-30 21:13:51 +0100
commit27030debeec1186ec7aa4d3bd16029fc612419aa (patch)
treedbd154540b36283a9979d044645174c7034cc5e4 /cui
parent111c4c24becd1c3fe367593df9870e4071495fd1 (diff)
No apparent reason to limit nXStep to sal_uInt16 instead of long
Change-Id: Iee74da2f6e58fa809b068675c250c0445d9adf58
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/numpages.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx
index 8b03a1e23dda..bf2c010525f7 100644
--- a/cui/source/tabpages/numpages.cxx
+++ b/cui/source/tabpages/numpages.cxx
@@ -2322,7 +2322,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool
long nWidthRelation = 30; // chapter dialog
// height per level
- sal_uInt16 nXStep = sal::static_int_cast<sal_uInt16>(aSize.Width() / (3 * pActNum->GetLevelCount()));
+ long nXStep = aSize.Width() / (3 * pActNum->GetLevelCount());
if (pActNum->GetLevelCount() < 10)
nXStep /= 2;
long nYStart = 4;