[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - basic/source

Pierre Lepage pierrelepage3 at gmail.com
Wed Jan 25 11:42:44 UTC 2017


 basic/source/comp/exprtree.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 65e294e221e0ad1d37c6667eecb995817ace870d
Author: Pierre Lepage <pierrelepage3 at gmail.com>
Date:   Sat Nov 5 14:52:44 2016 -0400

    tdf#80731 Closing parenthesis is now detected (Mid statement and functions).
    
    Change-Id: I5efdb6c3ce71148672a8b76d3f1cc87b0fe04994
    Reviewed-on: https://gerrit.libreoffice.org/30593
    Tested-by: Julien Nabet <serval2412 at yahoo.fr>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    (cherry picked from commit 379b7ffb68bed5bc376a91032a781be147a6eff1)
    Reviewed-on: https://gerrit.libreoffice.org/33341
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx
index e7a2210..008976f 100644
--- a/basic/source/comp/exprtree.cxx
+++ b/basic/source/comp/exprtree.cxx
@@ -1055,6 +1055,11 @@ SbiExprListPtr SbiExprList::ParseParameters( SbiParser* pParser, bool bStandalon
         {
             if( ( pExprList->bBracket && eTok == RPAREN ) || SbiTokenizer::IsEoln( eTok ) )
             {
+                if ( SbiTokenizer::IsEoln( eTok ) && pExprList->bBracket)
+                {
+                    pParser->Error( ERRCODE_BASIC_EXPECTED, RPAREN );
+                    pExprList->bError = true;
+                }
                 break;
             }
             pParser->Error( pExprList->bBracket ? ERRCODE_BASIC_BAD_BRACKETS : ERRCODE_BASIC_EXPECTED, COMMA );


More information about the Libreoffice-commits mailing list