<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:erack@redhat.com" title="Eike Rathke <erack@redhat.com>"> <span class="fn">Eike Rathke</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - the current() function is confused if used inside or()"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=121105">bug 121105</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>UNCONFIRMED
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>NOTABUG
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - the current() function is confused if used inside or()"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=121105#c11">Comment # 11</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - the current() function is confused if used inside or()"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=121105">bug 121105</a>
from <span class="vcard"><a class="email" href="mailto:erack@redhat.com" title="Eike Rathke <erack@redhat.com>"> <span class="fn">Eike Rathke</span></a>
</span></b>
<pre>(In reply to Jiří Boháč from <a href="show_bug.cgi?id=121105#c9">comment #9</a>)
<span class="quote">> yes, this is the bug. There cannot be any sane explanation for this:
>
> =5+OR(0;CURRENT()) = 5
> =5+OR(CURRENT(),0) = 6</span >
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>