https://bugs.documentfoundation.org/show_bug.cgi?id=128951
Bug ID: 128951
Summary: API: inserting a sheet fails with
IllegalArgumentException
Product: LibreOffice
Version: 6.4.0.0.beta1+
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: bibisectNotNeeded, regression
Severity: normal
Priority: medium
Component: Calc
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
This BASIC code:
sub test
oSheet = ThisComponent
oSheet = calcDoc.createInstance ("com.sun.star.sheet.Spreadsheet")
calcDoc.Sheets.insertByName ("NewName", oSheet)
end sub
fails in "calcDoc.Sheets.insertByName ("NewName", oSheet)" with
com.sun.star.lang.IllegalArgumentException.
This happens in ScTableSheetsObj::insertByName, because it checks that
pSheetObj->GetDocShell() must be nullptr (= sheet not inserted yet).
This broke in
https://git.libreoffice.org/core/+/009e7a54f40ebacd9dd4a394504c277789699801,
where ScServiceProvider::MakeInstance was changed to pass pDocShell to
ScTableSheetObj ctor.
Noel: could you please take a look?
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs