[Libreoffice-bugs] [Bug 130583] New: switch() gives "wrong data type" error on reordering value-result pairs

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Feb 11 09:50:26 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=130583

            Bug ID: 130583
           Summary: switch() gives "wrong data type" error on reordering
                    value-result pairs
           Product: LibreOffice
           Version: 6.4.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: milan.berta at gmail.com

Created attachment 157787
  --> https://bugs.documentfoundation.org/attachment.cgi?id=157787&action=edit
a minimal example: value-result pairs ordered and disordered

I ran into a strange behaviour, when switch() gives "wrong data type" error on
reordering value-result pairs. I've found out that the value-result pairs shall
be ordered ascending in the switch function not to receive an error. Otherwise,
if the value-results pairs are disordered, some values are not recognised and
pairs with their result.

It gives hard time to order the values and not to receive a #value error, but
if it would be required, it shall be documented, too:
file:///C:/Program%20Files/LibreOffice/help/en-US/text/scalc/01/func_switch.html?DbPAR=CALC#bm_id571556244875552

Personally, I think the behaviour is a bug.

Version: 6.4.0.3 (x64)
Build ID: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
CPU threads: 8; OS: Windows 10.0 Build 18362; UI render: default; VCL: win; 
Locale: cs-CZ (cs_CZ); UI-Language: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200211/519c3956/attachment.htm>


More information about the Libreoffice-bugs mailing list