<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 - Bad behaviour of status indicator used from basic macros."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111861">111861</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Bad behaviour of status indicator used from basic macros.
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>x86 (IA32)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (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>BASIC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>luismiguel.lacosta@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=135587" name="attach_135587" title="Test file.">attachment 135587</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=135587&action=edit" title="Test file.">[details]</a></span>
Test file.

I am using the status indicator to show progress in basic macros.

Behaviour has changed after version 5 (tested up to 5.4.1.0):

1) When you set text with SetText property after set value no progress bar is
show.

2) When you call SetValue property the first time after initialization no
progress bar is show.

3) When you call SetValue property the next times position of progress bar is
the position of the last call to SetValue.

This behaviour is not present in version 4.7.7.2
In old version behaviour is the most logic:

1) When you set text with SetText property after set value the position of the
progress bar is NOT changed

2) When you call SetValue property progress bar is always show in the position
of the current call to SetValue.

I have made a test calc file with some macros.

To test issue 1 open the attached test file, press button "Start" (Initialises
progress bar to max value of 100), 
press "Set value 50" (no progress bar is show), press "Set value 25" (progress
bar is show to 50%), press "Set text" (no progress bar is show).

To test issue 2 and 3 open the attached test file, press button "Start", press
an arbitrary "Set value" button (no progress bar is show), 
press another "Set value" button (progress bar is show in the position
indicated by previous button), 
press another "Set value" button (progress bar is show again in then position
indicated by previous button).</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>