[Libreoffice-bugs] [Bug 128951] New: API: inserting a sheet fails with IllegalArgumentException
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Nov 22 10:34:55 UTC 2019
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: libreoffice-bugs at lists.freedesktop.org
Reporter: mikekaganski at hotmail.com
CC: noelgrandin at gmail.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191122/68687b8a/attachment.html>
More information about the Libreoffice-bugs
mailing list