Apache OpenOffice (AOO) Bugzilla – Issue 120720
Import .xls created by Excel 2007, with named drawing object, there is a crash.
Last modified: 2013-06-07 07:16:13 UTC
Created attachment 79164 [details] .xls created by Excel2007 build r1360602 It works on r1360079 Steps: Open the sample Book1_2007.xls created by Excel 2007, which has a drawing object in AOO. Issue: Application will crash. PS: In another attachement Book1.xls created by Excel2003, it does not have this problem.
Created attachment 79165 [details] .xls created by Excel2003, which does not have this issue.
I am working on this defect. Now I found root cause is some sdr object didn't contain a sdrmodule, when calling the API SrdOject->GetModule(), which return NULL, and cause AOO crash. I filter side, SvxMSDffManager::ImportShape() is a key point. In this function, sdr object group will not be set module on it. code: if(aObjData.nSpFlag & SP_FGROUP) { pRet = new SdrObjGroup .... // there is no call function setModule(); } And if(eShapeType >= mso_sptStraightConnector1 && eShapeType <= mso_sptCurvedConnector5) the sdroject will be deleted and a new SdrEdgeObj will be created, in this process, function setModule() is not be called neither.
Created attachment 79190 [details] Add patch Solution: To check the validate of model in a SDR object
I can't reproduce on AOO400m2(Build:9701) - Rev. 1489073 on Win7 OS
refer comments 3