diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-04-25 15:04:57 -0700 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-05-03 08:24:18 +0200 |
commit | 9f71d0f3f98db02ad28712f229665ce910dc0e6e (patch) | |
tree | f0fa532c412badcaefdb6b5fa26b051f6b2cf72d /basic/source | |
parent | 2f9cd77c1cd480244f8c17221c2f74f3f97df57f (diff) |
tdf#68339 Other: BASIC Syntax error
Allow expressions (operands) of comparison operators prefixed with the
Logical Operator "Not".
Change-Id: I1b070e2288dac26b1f1186d38cf5d2f4ad99a406
Reviewed-on: https://gerrit.libreoffice.org/71332
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/comp/exprtree.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx index 68345a5e5636..24b004f424ef 100644 --- a/basic/source/comp/exprtree.cxx +++ b/basic/source/comp/exprtree.cxx @@ -500,6 +500,9 @@ std::unique_ptr<SbiExprNode> SbiExpression::Operand( bool bUsedForTypeOf ) break; case DOT: // .with pRes = Term(); break; + case NOT: + pRes = VBA_Not(); + break; case NUMBER: pParser->Next(); pRes = std::make_unique<SbiExprNode>( pParser->GetDbl(), pParser->GetType() ); |