diff options
-rw-r--r-- | basic/source/sbx/sbxvalue.cxx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/basic/source/sbx/sbxvalue.cxx b/basic/source/sbx/sbxvalue.cxx index 7f00eccb3a51..add49e101a8a 100644 --- a/basic/source/sbx/sbxvalue.cxx +++ b/basic/source/sbx/sbxvalue.cxx @@ -1264,16 +1264,6 @@ Lbl_OpIsDouble: else aL.nDouble /= aR.nDouble; break; case SbxPLUS: aL.nDouble += aR.nDouble; break; -#if 0 - // See 'break' on preceding line... this - // is unreachable code. Do not delete this - // #if 0 block unless you know for sure - // the 'break' above is intentional. - - // #45465 Date needs with "+" a special handling: forces date type - if( GetType() == SbxDATE || rOp.GetType() == SbxDATE ) - aL.eType = SbxDATE; -#endif case SbxMINUS: aL.nDouble -= aR.nDouble; break; case SbxNEG: @@ -1281,6 +1271,9 @@ Lbl_OpIsDouble: default: SetError( SbxERR_NOTIMP ); } + // #45465 Date needs with "+" a special handling: forces date type + if( GetType() == SbxDATE || rOp.GetType() == SbxDATE ) + aL.eType = SbxDATE; } } |