From a7a9919b538a5478cfbd2c137a0f80b02b67e136 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 30 Jan 2018 17:28:47 +0100 Subject: No apparent reason to limit nYStart to sal_uInt16 instead of long Change-Id: I471eca407cb45daba62d679c8c43fb37d98dd762 --- cui/source/tabpages/numpages.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cui') 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(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((aSize.Height() - 6)/ (pActNum->GetLevelCount() > 1 ? pActNum->GetLevelCount() : 5)); -- cgit