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@lists.freedesktop.org
          Reporter: ba...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to