Activity log for bug #474844

Date Who What changed Old value New value Message
2009-11-04 22:38:54 jimav bug added bug
2009-11-04 22:38:54 jimav attachment added Dependencies.txt http://launchpadlibrarian.net/35119709/Dependencies.txt
2009-11-04 22:38:54 jimav attachment added ProcMaps.txt http://launchpadlibrarian.net/35119710/ProcMaps.txt
2009-11-04 22:38:54 jimav attachment added ProcStatus.txt http://launchpadlibrarian.net/35119711/ProcStatus.txt
2009-11-04 22:38:54 jimav attachment added XsessionErrors.txt http://launchpadlibrarian.net/35119712/XsessionErrors.txt
2010-05-13 22:32:45 Chris Cheney tags amd64 apport-bug amd64 apport-bug karmic
2010-05-20 06:21:35 Chris Cheney openoffice.org (Ubuntu): status New Incomplete
2010-05-22 20:51:21 jimav attachment added Demo file http://launchpadlibrarian.net/48940570/bugdemo.ods
2010-05-22 20:53:27 jimav description Binary package hint: openoffice.org ReDim (and Dim) throw a run-time error if UpperBound = (LowerBound-1). For example Dim foo(0 to 9) ... ReDim foo(0 to -1) 'causes error This should not be an error, but should make the array contain zero elements. Note that arrays can be initially declared as empty with Dim foo() which sets UBound to -1 It -is- possible to say ReDim foo() to set UBound to -1, but that form does not allow easy use in algorithms which compute array bounds at run-time and may validly want to get an empty array. For example sub RemoveLastElements(ary(), n) ReDim Preserve ary(LBound(ary) to UBound(ary)-n) end sub ... should work for for n up to and including the total number of elements, but instead you currently have to code it like this: sub RemoveLastElements(ary(), n) if UBound(ary)-LBound(ary) > n then ReDim Preserve ary(LBound(ary) to UBound(ary)-n) else ReDim ary() end if end sub ProblemType: Bug Architecture: amd64 Date: Wed Nov 4 14:25:11 2009 DistroRelease: Ubuntu 9.10 ExecutablePath: /usr/lib/openoffice/program/soffice.bin Package: openoffice.org-core 1:3.1.1-5ubuntu1 [modified: var/lib/openoffice/basis3.1/program/services.rdb] ProcEnviron: PATH=(custom, user) LANG=en_US.UTF-8 SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.31-14.48-generic SourcePackage: openoffice.org Uname: Linux 2.6.31-14-generic x86_64 Binary package hint: openoffice.org ReDim (and Dim) throw a run-time error if UpperBound = (LowerBound-1). For example   Dim foo(0 to 9)   ...   ReDim foo(0 to -1) 'causes error This should not be an error, but should make the array contain zero elements. Note that arrays can be declared as empty with    Dim foo() which has the save effect as ReDim foo(0 to -1) [except that it works...]. However that form does not allow easy use in algorithms which compute array bounds at run-time and may validly want to result an empty array. DEMO: See attached file. For example   sub RemoveLastElements(ary(), n)      ReDim Preserve ary(LBound(ary) to UBound(ary)-n)   end sub ... should work for for n up to and including the total number of elements, but instead you currently have to code it like this:   sub RemoveLastElements(ary(), n)      if UBound(ary)-LBound(ary) > n then         ReDim Preserve ary(LBound(ary) to UBound(ary)-n)      else         ReDim ary()      end if end sub ProblemType: Bug Architecture: amd64 Date: Wed Nov 4 14:25:11 2009 DistroRelease: Ubuntu 9.10 ExecutablePath: /usr/lib/openoffice/program/soffice.bin Package: openoffice.org-core 1:3.1.1-5ubuntu1 [modified: var/lib/openoffice/basis3.1/program/services.rdb] ProcEnviron:  PATH=(custom, user)  LANG=en_US.UTF-8  SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.31-14.48-generic SourcePackage: openoffice.org Uname: Linux 2.6.31-14-generic x86_64
2010-05-22 20:53:59 jimav tags amd64 apport-bug karmic amd64 apport-bug apport-collected karmic
2010-05-22 20:54:05 jimav description Binary package hint: openoffice.org ReDim (and Dim) throw a run-time error if UpperBound = (LowerBound-1). For example   Dim foo(0 to 9)   ...   ReDim foo(0 to -1) 'causes error This should not be an error, but should make the array contain zero elements. Note that arrays can be declared as empty with    Dim foo() which has the save effect as ReDim foo(0 to -1) [except that it works...]. However that form does not allow easy use in algorithms which compute array bounds at run-time and may validly want to result an empty array. DEMO: See attached file. For example   sub RemoveLastElements(ary(), n)      ReDim Preserve ary(LBound(ary) to UBound(ary)-n)   end sub ... should work for for n up to and including the total number of elements, but instead you currently have to code it like this:   sub RemoveLastElements(ary(), n)      if UBound(ary)-LBound(ary) > n then         ReDim Preserve ary(LBound(ary) to UBound(ary)-n)      else         ReDim ary()      end if end sub ProblemType: Bug Architecture: amd64 Date: Wed Nov 4 14:25:11 2009 DistroRelease: Ubuntu 9.10 ExecutablePath: /usr/lib/openoffice/program/soffice.bin Package: openoffice.org-core 1:3.1.1-5ubuntu1 [modified: var/lib/openoffice/basis3.1/program/services.rdb] ProcEnviron:  PATH=(custom, user)  LANG=en_US.UTF-8  SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.31-14.48-generic SourcePackage: openoffice.org Uname: Linux 2.6.31-14-generic x86_64 Binary package hint: openoffice.org ReDim (and Dim) throw a run-time error if UpperBound = (LowerBound-1). For example   Dim foo(0 to 9)   ...   ReDim foo(0 to -1) 'causes error This should not be an error, but should make the array contain zero elements. Note that arrays can be declared as empty with    Dim foo() which has the save effect as ReDim foo(0 to -1) [except that it works...]. However that form does not allow easy use in algorithms which compute array bounds at run-time and may validly want to result an empty array. DEMO: See attached file. For example   sub RemoveLastElements(ary(), n)      ReDim Preserve ary(LBound(ary) to UBound(ary)-n)   end sub ... should work for for n up to and including the total number of elements, but instead you currently have to code it like this:   sub RemoveLastElements(ary(), n)      if UBound(ary)-LBound(ary) > n then         ReDim Preserve ary(LBound(ary) to UBound(ary)-n)      else         ReDim ary()      end if end sub ProblemType: Bug Architecture: amd64 Date: Wed Nov 4 14:25:11 2009 DistroRelease: Ubuntu 9.10 ExecutablePath: /usr/lib/openoffice/program/soffice.bin Package: openoffice.org-core 1:3.1.1-5ubuntu1 [modified: var/lib/openoffice/basis3.1/program/services.rdb] ProcEnviron:  PATH=(custom, user)  LANG=en_US.UTF-8  SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.31-14.48-generic SourcePackage: openoffice.org Uname: Linux 2.6.31-14-generic x86_64 --- Architecture: amd64 DistroRelease: Ubuntu 10.04 InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429) Package: openoffice.org-calc 1:3.2.0-7ubuntu4 PackageArchitecture: amd64 ProcEnviron: PATH=(custom, user) LANG=en_US.UTF-8 SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2 Tags: lucid Uname: Linux 2.6.32-22-generic x86_64 UserGroups: adm admin audio cdrom dialout dip fax floppy fuse games lpadmin netdev plugdev sambashare tape users vboxusers video
2010-05-22 20:54:09 jimav attachment added Dependencies.txt http://launchpadlibrarian.net/48940670/Dependencies.txt
2010-05-23 05:00:36 Chris Cheney bug task added openoffice
2010-05-23 05:00:59 Chris Cheney summary ReDim to empty does not work [upstream] ReDim to empty does not work
2010-05-23 05:01:07 Chris Cheney openoffice.org (Ubuntu): status Incomplete Triaged
2011-09-15 14:18:13 Björn Michaelsen openoffice.org (Ubuntu): status Triaged Won't Fix
2011-09-17 06:33:24 penalvch openoffice: status New Invalid
2011-09-17 06:33:52 penalvch summary [upstream] ReDim to empty does not work ReDim to empty does not work
2011-09-17 12:58:13 penalvch bug task added libreoffice (Ubuntu)
2011-09-17 13:01:34 penalvch libreoffice (Ubuntu): status New Incomplete
2011-09-18 04:29:05 jimav attachment added bugdemo_redim_empty.ods https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/474844/+attachment/2420328/+files/bugdemo_redim_empty.ods
2011-09-18 04:30:42 jimav attachment removed Demo file (wronge file; please use bugdemo_redim_empty attached below) https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/474844/+attachment/1400598/+files/bugdemo.ods
2011-09-19 05:16:13 penalvch libreoffice (Ubuntu): status Incomplete New
2015-01-20 20:37:54 Bryan Quigley libreoffice (Ubuntu): status New Incomplete
2015-01-20 20:37:58 Bryan Quigley bug added subscriber Bryan Quigley
2015-01-21 00:52:19 jimav attachment added Screenshot as requested in comment #8 https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/474844/+attachment/4302708/+files/screenshot.png
2015-01-21 00:54:29 jimav libreoffice (Ubuntu): status Incomplete New
2019-08-13 11:49:42 Marcus Tomlinson libreoffice (Ubuntu): status New Incomplete
2019-10-13 04:18:28 Launchpad Janitor libreoffice (Ubuntu): status Incomplete Expired