https://bugs.freedesktop.org/show_bug.cgi?id=43490

             Bug #: 43490
           Summary: Redim function with option base set to 1 not working
                    correctly
    Classification: Unclassified
           Product: LibreOffice
           Version: unspecified
          Platform: Other
        OS/Version: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
        AssignedTo: libreoffice-bugs@lists.freedesktop.org
        ReportedBy: mies...@mieszczak.com.pl


If option base is set to 1, the redim function make wrong calculation of new
table size, as in following example:

OPTION BASE 1

Sub Main
DIM table() AS VARIANT
DIM size AS INTEGER

size= ubound(table )
REDIM PRESERVE table( size + 1)


size= ubound(table )
REDIM PRESERVE table( size + 1)


size= ubound(table )
REDIM PRESERVE table( size + 1)


End Sub


During tracing of this program, to size of the table is changing:
1 -> 3 -> 5

And should be changing:

1 -> 2 -> 3

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to