[Libreoffice-commits] .: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Sep 27 09:53:26 PDT 2012


 sw/source/filter/ww8/docxattributeoutput.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7d92ac2f05679933d9a2df131786efa6ece00705
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Thu Sep 27 18:50:49 2012 +0200

    sw: hopefully fix windows build
    
    Change-Id: If8d2b964cad9dfd8b847fbc89f9e13ebfb5bc191

diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 1252a3b..29aafd2 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -2182,7 +2182,7 @@ void DocxAttributeOutput::FlyFrameGraphic( const SwGrfNode& rGrfNode, const Size
     if ( aShadowItem.GetLocation() != SVX_SHADOW_NONE )
     {
         // Distance is measured diagonally from corner
-        double nShadowDist = sqrt((aShadowItem.GetWidth()*aShadowItem.GetWidth())*2);
+        double nShadowDist = sqrt((aShadowItem.GetWidth()*aShadowItem.GetWidth())*2.0);
         OString aShadowDist( OString::valueOf( TwipsToEMU( nShadowDist ) ) );
         OString aShadowColor = impl_ConvertColor( aShadowItem.GetColor() );
         sal_uInt32 nShadowDir = 0;


More information about the Libreoffice-commits mailing list