https://bugs.freedesktop.org/show_bug.cgi?id=71248
--- Comment #10 from [email protected] --- The problematic code is in vbahelper/source/vbahelper/vbahelper.cxx function getCurrentDoc( const OUString& sKey ). This function does NOT return the current document, but only the last opened document. If the last opened document is closed, this function raises an exception [referencing xModel->getURL()]. When the exception is raised, the function "getCurrentExcelDoc" falls back to getThisExcelDoc() which works properly. So, a quick bandaid would be to always call "getThisExcelDoc" instead of "getCurrentDoc" since the "current" doc isn't correct anyway. THISdoc will USUALLY be the activeDoc (but not necessarily). I'll look a bit more into what getCurrentDoc() does and see if I can figure out how to properly fix it, but at the moment I don't understand what it is trying to do. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
