[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - oox/source

Caolán McNamara caolanm at redhat.com
Sun Jun 18 13:08:03 UTC 2017


 oox/source/export/vmlexport.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f804cce00ec00cb2a97be0ca8c0bab4e953773b0
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Jun 10 14:39:29 2017 +0100

    coverity#1412145 Result is not floating point
    
    Change-Id: Ia2b4c4f14f5a59dd5d24c0d0749922e0d190f53a
    Reviewed-on: https://gerrit.libreoffice.org/38635
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-on: https://gerrit.libreoffice.org/38919

diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx
index a7420b560beb..5196edbe74ec 100644
--- a/oox/source/export/vmlexport.cxx
+++ b/oox/source/export/vmlexport.cxx
@@ -815,7 +815,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const tools::Rectangle&
                         sal_uInt32 nSize;
                         if (rProps.GetOpt(ESCHER_Prop_gtextSize, nSize))
                         {
-                            float nSizeF = (sal_Int32)nSize / 65536;
+                            float nSizeF = (sal_Int32)nSize / 65536.0;
                             OUString aSize = OUString::number(nSizeF);
                             aStyle += ";font-size:" + aSize + "pt";
                         }


More information about the Libreoffice-commits mailing list