Created attachment 142772 [details] 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.
Created attachment 142774 [details] Backtrace
On pc Debian x86-64 with master sources updated today, I could reproduce this.
I haven't tested, but this should be fixed by Mike's commit, thanks a lot for the fix! https://cgit.freedesktop.org/libreoffice/core/commit/?id=01f712b6db1fab72abfe46ee6c3868f8b3cd035c author Mike Kaganski <mike.kaganski@collabora.com> 2018-06-30 17:34:07 +0200 committer Mike Kaganski <mike.kaganski@collabora.com> 2018-06-30 19:05:27 +0200 Avoid assertion on user data