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

No apparent reason to limit nXStep to sal_uInt16 instead of long

Change-Id: Iee74da2f6e58fa809b068675c250c0445d9adf58
üst 111c4c24
...@@ -2322,7 +2322,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool ...@@ -2322,7 +2322,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool
long nWidthRelation = 30; // chapter dialog long nWidthRelation = 30; // chapter dialog
// height per level // 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) if (pActNum->GetLevelCount() < 10)
nXStep /= 2; nXStep /= 2;
long nYStart = 4; long nYStart = 4;
......
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