Kaydet (Commit) ad6e932b authored tarafından Pedro Giffuni's avatar Pedro Giffuni

i108228 - table: bool has negative sign when used in formula expression.

The root problem is that the boolean expression "true"
evaluates to -1 rather than +1 in formulas in Writer.

The problem is solved by considering that the type can
be a Boolean (SBxBool in addition to SbxSTRING.

Author:	Mattias Johnnson
üst 063884a9
...@@ -1760,7 +1760,7 @@ double SwSbxValue::GetDouble() const ...@@ -1760,7 +1760,7 @@ double SwSbxValue::GetDouble() const
SwSbxValue& SwSbxValue::MakeDouble() SwSbxValue& SwSbxValue::MakeDouble()
{ {
if( SbxSTRING == GetType() ) if( SbxSTRING == GetType() || SbxBOOL == GetType() )
PutDouble( GetDouble() ); PutDouble( GetDouble() );
return *this; return *this;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment