[Libreoffice-commits] core.git: oox/source

Caolán McNamara caolanm at redhat.com
Sat Jun 10 16:02:14 UTC 2017


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

New commits:
commit 67bf2dd287597cf76f310c34f8178b07dd62bd12
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>

diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx
index d5b829d41c3f..b91d72e218e9 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