[Libreoffice-commits] .: sw/source

Noel Power noelp at kemper.freedesktop.org
Thu Dec 9 04:11:16 PST 2010


 sw/source/core/bastyp/calc.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 84323674f96e93fe32329284bc50c08ba738b38c
Author: Mattias Johnsson <m.t.johnsson at gmail.com>
Date:   Thu Dec 9 11:55:25 2010 +0000

    Fix i#108228 : bool has negative sign when used in formula expression

diff --git a/sw/source/core/bastyp/calc.cxx b/sw/source/core/bastyp/calc.cxx
index 9f4b77c..a2a2a1f 100644
--- a/sw/source/core/bastyp/calc.cxx
+++ b/sw/source/core/bastyp/calc.cxx
@@ -1726,7 +1726,7 @@ double SwSbxValue::GetDouble() const
 
 SwSbxValue& SwSbxValue::MakeDouble()
 {
-    if( SbxSTRING == GetType() )
+    if( GetType() == SbxSTRING  || GetType() == SbxBOOL )
         PutDouble( GetDouble() );
     return *this;
 }


More information about the Libreoffice-commits mailing list