Created attachment 142772 [details]
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);
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]
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!
author Mike Kaganski <firstname.lastname@example.org> 2018-06-30 17:34:07 +0200
committer Mike Kaganski <email@example.com> 2018-06-30 19:05:27 +0200
Avoid assertion on user data