<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Bug in selection menu for active cell range functions"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=107366">107366</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Bug in selection menu for active cell range functions
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.3.2.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Mac OS X (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Calc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rolf.lochbuehler@web.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=132765" name="attach_132765" title="Result of step 7">attachment 132765</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=132765&action=edit" title="Result of step 7">[details]</a></span>
Result of step 7

In the status bar of Calc the results of some functions are calculated and
displayed automatically for the active cell range. The functions are Average,
CountA, Count, Maximum, Minimum, Sum, Selection count.

(Sorry, I don't know the official term for this feature. But the attached
screenshot will hopefully make clear what I mean.)

In a context menu, that is, a menu that opens once I right-mouse-button (RMB)
click on the status bar, I can select which subset of the functions mentioned
above I want Calc to execute automatically.

That context menu doesn't work correctly in LibreOffice 5.3.2.2 for macOS, as
you can see in the attached screenshot. The selection shown in the context menu
almost never matches the actually selected functions.

To reproduce this issue in Calc:
1. RMB click on the function section of the status bar
2. Select "None"
3. RMB click on status bar again
4. Select "Sum"
 → Result: "Sum: 0" appears in status bar, as expected
5. RMB click on status bar again
 → Result: "Sum" is not selected in context menu, when it should be
6. Select "Average"
 → Result: "Average: ; Sum: 0" appears in status bar, as expected
7. RMB click on status bar again
 → Result: "Sum" is now selected in context menu, but "Average" is not

(LibreOffice 5.3.2.2, macOS 10.12.4)</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>