Kaydet (Commit) a7a9919b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

No apparent reason to limit nYStart to sal_uInt16 instead of long

Change-Id: I471eca407cb45daba62d679c8c43fb37d98dd762
üst 1ad38d06
...@@ -2325,7 +2325,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool ...@@ -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())); sal_uInt16 nXStep = sal::static_int_cast<sal_uInt16>(aSize.Width() / (3 * pActNum->GetLevelCount()));
if (pActNum->GetLevelCount() < 10) if (pActNum->GetLevelCount() < 10)
nXStep /= 2; nXStep /= 2;
sal_uInt16 nYStart = 4; long nYStart = 4;
// the whole height mustn't be used for a single level // 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)); sal_uInt16 nYStep = sal::static_int_cast<sal_uInt16>((aSize.Height() - 6)/ (pActNum->GetLevelCount() > 1 ? pActNum->GetLevelCount() : 5));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment