[Libreoffice-bugs] [Bug 121105] the current() function is confused if used inside or()

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Feb 26 10:28:53 UTC 2019


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

Eike Rathke <erack at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |NOTABUG

--- Comment #11 from Eike Rathke <erack at redhat.com> ---
(In reply to Jiří Boháč from comment #9)
> yes, this is the bug. There cannot be any sane explanation for this:
> 
> =5+OR(0;CURRENT()) = 5
> =5+OR(CURRENT(),0) = 6
That is completely logical.
In the first case, CURRENT() evaluates to 0 because the 0 was pushed last onto
the evaluation stack and OR(0,0) yields 0.
In the second case, CURRENT() evaluates to 5 because the 5 was pushed last onto
the evaluation stack and OR(5,0) yields 1.

-- 
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/20190226/21e78c27/attachment-0001.html>


More information about the Libreoffice-bugs mailing list