Apache OpenOffice (AOO) Bugzilla – Issue 112596
[From Symphony]Workbooks(...) does not work well in some cases
Last modified: 2017-05-20 11:29:22 UTC
Workbooks(...) does not work well in some cases: If opened spreadsheet files' name has space char, such as "Hello VBA.xls", Workbooks(""Hello VBA.xls").Name throws a error "...NoSuchElementException...".
Created attachment 70140 [details] Test sample for this issue
Created attachment 70141 [details] Patch for this issue
The patch is a little confusing, the following lines are not used at all INetURLObject aURL( xModel->getURL() ); rtl::OUString sName = aURL.GetLastName(); constucting an object seems a little wasteful but its better than copying and pasting ;-) I think if you remove the lines above then its ok to commit and upstrem
Created attachment 70142 [details] Change the fix according to noel's comments.
Reset assigne to the default "issues@openoffice.apache.org".