summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-30 13:44:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-30 13:44:03 +0000
commitffa19a95c44f15049bcc1133c98ef2b4d18f7638 (patch)
tree6e1590e07bbe1504d64a2dd3dfc3c65ba95737f2 /sw
parentb030768b73ac0529b308b22549afca4e4d57a8d3 (diff)
coverity#1427008 Result is not floating-point
Change-Id: I3066bf4d7161a2606d0f2f7dd33deefe2ed2f421
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/html/svxcss1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/html/svxcss1.cxx b/sw/source/filter/html/svxcss1.cxx
index 881a059c8854..2c6b9933d6ea 100644
--- a/sw/source/filter/html/svxcss1.cxx
+++ b/sw/source/filter/html/svxcss1.cxx
@@ -2296,8 +2296,8 @@ static void ParseCSS1_margin( const CSS1Expression *pExpr,
break;
case CSS1_PIXLENGTH:
{
- auto fMargin = pExpr->GetNumber();
- if (fMargin < SAL_MAX_INT32/2 && fMargin > SAL_MIN_INT32/2)
+ double fMargin = pExpr->GetNumber();
+ if (fMargin < SAL_MAX_INT32/2.0 && fMargin > SAL_MIN_INT32/2.0)
{
nMargin = (long)fMargin;
long nPWidth = 0;