Bug 148950 - Libreoffice crash when trying to delete the "Standard" characters style using API.
Summary: Libreoffice crash when trying to delete the "Standard" characters style using...
Status: RESOLVED DUPLICATE of bug 148949
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-05 10:20 UTC by vatairethibault
Modified: 2022-05-05 11:16 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vatairethibault 2022-05-05 10:20:07 UTC
LibreOffice crash when trying to delete the "Default" cells style using API.

Steps to Reproduce:
1. Open a Calc document
2. Open Tools > Macros > Organize Macros > Basic...
3. Edit a module and paste following content : 

Sub Calc
thisComponent.StyleFamilies.getByName("CellStyles").removeByName("Default")
End Sub

4. run the Calc function.


Actual Results:
LibreOffice crash after a few seconds and the report dialog is displayed on restart.

Crash report : https://crashreport.libreoffice.org/stats/crash_details/2da25305-dc74-4e8b-b1f9-1b26a7a0b503

Expected Results:
LibreOffice should not crash.


Reproducible: Always


User Profile Reset: Yes


Version: 7.1.4.2 / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 16; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 1 Xisco Faulí 2022-05-05 11:16:14 UTC

*** This bug has been marked as a duplicate of bug 148949 ***