Apache OpenOffice (AOO) Bugzilla – Issue 98318
Office Crash after setting the reference to an existing file
Last modified: 2013-08-07 15:14:39 UTC
Steps to reproduce: - Open a existing file - Open a New File - Use Function Button in the new file - Switch to the existing file into a cell that contains content - Press Return -> Office crash
Sorry Eike, kohei should be the owner.
@kla: does this happen in m38, or is this specific in m39?
@Kohei: work fine in m38.
This isn't related to the integration of CWS mooxlsc then, which introduced a new handling of external references. I could bet it is because of CWS frmdlg ;-) @oj: Since you probably have already the needed modules with debug in one of your CWSs (my only CWS is currently rebasing to m39): could you please do us the favor and take a look where it crashes and if it's related to frmdlg changes fix it? Thanks Eike
Problem found. Grabbing.
Created attachment 59583 [details] Patch
Call me blind, but what exactly caused the crash and was fixed with this patch?
- pArray->Fill(_aTokenList); + pArray->Fill(_aTokenList,pDoc->GetExternalRefManager());
Argh.. I overlooked "use function button" in the original description.. thx.
Grabbing issue.
Funny.. we actually have two different crashes, one the attached patch fixes when constructing external references via the Function Wizard (!), and the one reported here with the Function (!) button that in fact is a duplicate of issue 98338. I applied both patches in CWS calcperf03. Note that I changed the C-style casts of this patch here to static_casts, one of them also fixes WaE issue 97555. revision 266762 sc/inc/token.hxx sc/source/core/data/global.cxx sc/source/core/tool/token.cxx sc/source/ui/app/inputhdl.cxx sc/source/ui/docshell/externalrefmgr.cxx sc/source/ui/formdlg/formula.cxx
Created attachment 59605 [details] The resulting patch.
Reassigning to QA for verification.
*** Issue 98570 has been marked as a duplicate of this issue. ***
verified in internal build cws_calcperf03
Verified in DEV310m7. Closing Li Meiying