diff options
author | Daniel Rentz [dr] <daniel.rentz@oracle.com> | 2011-03-25 19:01:51 +0100 |
---|---|---|
committer | Daniel Rentz [dr] <daniel.rentz@oracle.com> | 2011-03-25 19:01:51 +0100 |
commit | 620ecfa0dd997c747b45ba29da656353526ec0e2 (patch) | |
tree | 74f191349c9ad7c73268ee98f1054273af786b8a /vbahelper | |
parent | 3df85af7421b3c459c36337797f7f6fb86cebc91 (diff) |
calcvba: #164410# obviously, extractBoolFromAny should also check for boolean value...
Diffstat (limited to 'vbahelper')
-rw-r--r-- | vbahelper/source/vbahelper/vbahelper.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx index 827d387f031d..2a13124a741e 100644 --- a/vbahelper/source/vbahelper/vbahelper.cxx +++ b/vbahelper/source/vbahelper/vbahelper.cxx @@ -654,6 +654,8 @@ bool extractBoolFromAny( const uno::Any& rAny ) throw (uno::RuntimeException) { switch( rAny.getValueType().getTypeClass() ) { + case uno::TypeClass_BOOLEAN: + return rAny.get< bool >(); case uno::TypeClass_FLOAT: return rAny.get< float >() != 0.0; case uno::TypeClass_DOUBLE: |