diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-30 17:28:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-30 21:13:50 +0100 |
commit | a7a9919b538a5478cfbd2c137a0f80b02b67e136 (patch) | |
tree | ac0d1506ff05ceaded05cc7447544f445bf751ce | |
parent | 1ad38d06ea1f5d740851a5eb9497bf1fd8f86e32 (diff) |
No apparent reason to limit nYStart to sal_uInt16 instead of long
Change-Id: I471eca407cb45daba62d679c8c43fb37d98dd762
-rw-r--r-- | cui/source/tabpages/numpages.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index 3397b038d9bc..f80cd5cc346c 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -2325,7 +2325,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool sal_uInt16 nXStep = sal::static_int_cast<sal_uInt16>(aSize.Width() / (3 * pActNum->GetLevelCount())); if (pActNum->GetLevelCount() < 10) nXStep /= 2; - sal_uInt16 nYStart = 4; + long nYStart = 4; // the whole height mustn't be used for a single level sal_uInt16 nYStep = sal::static_int_cast<sal_uInt16>((aSize.Height() - 6)/ (pActNum->GetLevelCount() > 1 ? pActNum->GetLevelCount() : 5)); |