Created attachment 190437 [details] LO Base file with macro. Form wll not close. The attached LibreOffice Base file illustrates a problem that appears in 7.6.2.2 but not in 7.4.3.2. I'm using Slackware 15.0. I see the same problem in Win10. In 7.4.3.2 Open file aik_backgroundcolor.odb enable macros if necessary Open Form1 mouse click the button "Change form color" which invokes a macro The color of the form changes mouse click the top right close button the form closes successfully In 7.6.2.2 Open file aik_backgroundcolor.odb enable macros if necessary Open Form1 mouse click the button "Change form color" which invokes a macro The color of the form changes mouse click the top right close button the form fails to close
Bibisected with win64-7.6 to bde746141f9b382156a5ce79ebf82c5e32fc455b tdf#146547 sfx2: allow read-only documents to be modified I see the commit touches code related to Base forms.
AFter a minimum amount of thought added this line to macro ThisComponent.setModified(False) my issue solved
*** Bug 161201 has been marked as a duplicate of this bug. ***
*** Bug 159370 has been marked as a duplicate of this bug. ***
Michael Stahl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/3e7478ef9706e74ac551c1f94090e163e74c7fd8 tdf#157931 sfx2: fix modified status of Base forms It will be available in 24.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
fixed on master
Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-24-2": https://git.libreoffice.org/core/commit/d6b881627cc1f6982129862e0221da65389d83bf tdf#157931 sfx2: fix modified status of Base forms It will be available in 24.2.5. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.