summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-30 17:36:41 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-30 21:13:51 +0100
commit3e23dc67cfc2d396cf3cbd843d21db40558f5ffa (patch)
treea6209cbd8e7e480b619e5c9f30e997ebf81b5c78
parent941593917eda511b2ac39c7f62830d758e378151 (diff)
No apparent reason to limit nFontHeight to sal_uInt16 instead of long
Change-Id: Id2cf2c667871e551082e00424d36aef481f5819c
-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 2441411bbaed..4032b4db4016 100644
--- a/cui/source/tabpages/numpages.cxx
+++ b/cui/source/tabpages/numpages.cxx
@@ -2333,7 +2333,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool
aStdFont.SetColor(aTextColor);
aStdFont.SetFillColor(aBackColor);
- sal_uInt16 nFontHeight = nYStep * 6 / 10;
+ long nFontHeight = nYStep * 6 / 10;
if (bPosition)
nFontHeight = nYStep * 15 / 10;
aStdFont.SetFontSize(Size( 0, nFontHeight ));