<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 - Assertion failed opening an XLSM with Application.ScreenUpdating set to true"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=118180">118180</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed opening an XLSM with Application.ScreenUpdating set to true
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.2.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </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>baron@caesar.elte.hu
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>105537, 108908
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=142772" name="attach_142772" title="Sample XLSM">attachment 142772</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=142772&action=edit" title="Sample XLSM">[details]</a></span>
Sample XLSM

Open the attached XLSM file in a debug build, with having macros enabled. It
has a simple macro function that sets:
Application.ScreenUpdating = True

If the macro is called in a number of rows, the following assert is triggered
when opening the file, in ScDocument::UnlockAdjustHeight():
assert(nAdjustHeightLock > 0);
<a href="https://opengrok.libreoffice.org/xref/core/sc/source/core/data/document.cxx#1799">https://opengrok.libreoffice.org/xref/core/sc/source/core/data/document.cxx#1799</a>

No assertion failed if Application.ScreenUpdating isn't set to true.
Interestingly, there's no assertion if spreadsheet only contains 3 rows with
the call to the function, but there is when it contains 4.

Observed using an LO 6.2 master build
(06014f7a23bbc26c7e3d3b9c0bd4dd972f514433) / Windows 7.</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Assertion failed crashes"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=105537">Bug 105537</a>] [META] Assertion failed crashes
              </li>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Visual Basic for Applications (VBA) macro issues"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108908">Bug 108908</a>] [META] Visual Basic for Applications (VBA) macro issues
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>