[Libreoffice-bugs] [Bug 118180] New: Assertion failed opening an XLSM with Application.ScreenUpdating set to true

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jun 15 14:35:20 UTC 2018


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

            Bug ID: 118180
           Summary: Assertion failed opening an XLSM with
                    Application.ScreenUpdating set to true
           Product: LibreOffice
           Version: 6.2.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: baron at caesar.elte.hu
            Blocks: 105537, 108908

Created attachment 142772
  --> https://bugs.documentfoundation.org/attachment.cgi?id=142772&action=edit
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);
https://opengrok.libreoffice.org/xref/core/sc/source/core/data/document.cxx#1799

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.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=105537
[Bug 105537] [META] Assertion failed crashes
https://bugs.documentfoundation.org/show_bug.cgi?id=108908
[Bug 108908] [META] Visual Basic for Applications (VBA) macro issues
-- 
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/20180615/c295898b/attachment.html>


More information about the Libreoffice-bugs mailing list