Apache OpenOffice (AOO) Bugzilla – Issue 84536
Crash/freeze setting pagestyle properties via Macro
Last modified: 2013-08-07 14:42:49 UTC
The macro in the attached document (just click the "CRASH" button to execute it) attempts to copy the page style "Standard" to a newly created page style "foo". While working on this macro I discovered that when the setPropertyValues() command is issued 3 times, OOo crashes (Windows 2000) or freezes (Linux).
Created attachment 50292 [details] The included macro crashes (Win2000) or freezes (Linux) OOo
MRU->OS: just execute the macro via the button in the attached document.
Rassigned to ama stack: sw680mi.dll!BigPtrArray::Index2Block() + 0xa3 bytes C++ sw680mi.dll!BigPtrArray::operator[]() + 0x3a bytes C++ sw680mi.dll!SwNodes::RemoveNode() + 0x1d bytes C++ sw680mi.dll!SwNodes::DelNodes() + 0x109 bytes C++ sw680mi.dll!SwDoc::DeleteSection() + 0xff bytes C++ > sw680mi.dll!DelHFFormat(SwClient * pToRemove=0x00efe38c, SwFrmFmt * pFmt=0x06fc4000) Line 403 C++ sw680mi.dll!SwFmtFooter::~SwFmtFooter() Line 727 + 0x2e bytes C++ sw680mi.dll!SwUndoPageDesc::SwUndoPageDesc() + 0x284 bytes C++ sw680mi.dll!SwDoc::ChgPageDesc(unsigned short i=2, const SwPageDesc & rChged={...}) Line 291 + 0x36 bytes C++ sw680mi.dll!SwDocStyleSheet::SetFollow(const String & rStr={...}) Line 1052 C++ sw680mi.dll!lcl_SetStyleProperty(const SfxItemPropertyMap * pMap=0x098e95a8, SfxItemPropertySet & rPropSet={...}, const com::sun::star::uno::Any & rValue={...}, SwStyleBase_Impl & rBase={...}, SfxStyleSheetBasePool * pBasePool=0x0a3bb438, SwDoc * pDoc=0x0a41e938, SfxStyleFamily eFamily=SFX_STYLE_FAMILY_PAGE) Line 2002 C++
Fixed in CWS sw8u10bf04 docstyles.cxx
Ready for QA.
Verified fix in CWS sw8u10bf04.
*** Issue 85337 has been marked as a duplicate of this issue. ***
Checked the fix in OO 2.4 dev build OOH680m7 and SRC680m245.