From eaf06a641108b7cbdac1590a6acbd95bed39a3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Fri, 8 Nov 2013 01:08:25 +0000 Subject: [PATCH] [DEVELOPMENT ENVIRONMENT] * BUG: Correctly display optional values in signatures. git-svn-id: svn://localhost/gambas/trunk@5947 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- app/src/gambas3/.src/Component/CSymbolInfo.class | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/gambas3/.src/Component/CSymbolInfo.class b/app/src/gambas3/.src/Component/CSymbolInfo.class index f9e3dce60..b7ffea0ab 100644 --- a/app/src/gambas3/.src/Component/CSymbolInfo.class +++ b/app/src/gambas3/.src/Component/CSymbolInfo.class @@ -302,7 +302,7 @@ Private Sub MakeSignature(sSign As String) As String iInd += 2 sDefault = "" iPos = Highlight.Positions[iInd] - While iInd < aSym.Max + While iInd <= aSym.Max sSym = aSym[iInd] If sSym = "(" Then aWait.Push(")") @@ -318,6 +318,9 @@ Private Sub MakeSignature(sSign As String) As String sDefault = Trim(Mid$(sSign, iPos + 1, iPos2 - iPos)) Dec iInd Break + Else If iInd = aSym.Max Then + sDefault = Trim(Mid$(sSign, iPos + 1)) + Break Endif Endif Inc iInd