Issue 100132

Summary: WW8: certain list crashes on import
Product: Writer Reporter: richlv <richlv>
Component: open-importAssignee: michael.ruess
Status: CLOSED FIXED QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P2 CC: issues, orw
Version: OOO310m4Keywords: crash, regression
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 95768    
Attachments:
Description Flags
Very short document without confidential data none

Description richlv 2009-03-11 17:18:25 UTC
opening a particular, confidential .doc file crashes both OOO310_m4 and 
DEV300_m41
Comment 1 richlv 2009-03-11 17:19:50 UTC
testcase sent to mru; crashreports with both tested versions submitted.
Comment 2 richlv 2009-03-11 17:58:16 UTC
report ids : rp837vc and rsf37vc
Comment 3 michael.ruess 2009-03-12 12:47:29 UTC
MRU->OD / HBRINKM: the document crashes during import. Crash report lists
something like:
/so/ws/OOO310/src.m4/sal/osl/unx/signal.c:485
SignalHandlerFunction
/so/ws/OOO310/src.m4/sal/osl/unx/signal.c:857
SvxNumberFormat::SvxNumberFormat(SvxNumberFormat const&)
/so/ws/OOO310/ooo/svx/source/items/numitem.cxx:209
SwNumFmt::SwNumFmt(SwNumFmt const&)
/so/ws/OOO310/ooo/sw/source/core/doc/number.cxx:210
WW8ListManager::GetNumRuleForActivation(unsigned short, unsigned char,
_STL::vector >&, SwTxtNode*)
/so/ws/OOO310/ooo/sw/source/filter/ww8/ww8par3.cxx:1507
SwWW8ImplReader::RegisterNumFmtOnTxtNode(unsigned short, unsigned char, bool)
/so/ws/OOO310/ooo/sw/source/filter/ww8/ww8par3.cxx:1787
SwWW8ImplReader::RegisterNumFmt(unsigned short, unsigned char)
/so/ws/OOO310/ooo/sw/source/filter/ww8/ww8par3.cxx:1889
SwWW8ImplReader::Read_LFOPosition(unsigned short, unsigned char const*, short)
/so/ws/OOO310/ooo/sw/source/filter/ww8/ww8par3.cxx:2044
SwWW8ImplReader::ImportSprm(unsigned char const*, unsigned short)
/so/ws/OOO310/ooo/sw/source/filter/ww8/ww8par6.cxx:6119
SwWW8ImplReader::ReadTextAttr(long&, bool&)
Comment 4 michael.ruess 2009-03-12 12:48:34 UTC
Created attachment 60896 [details]
Very short document without confidential data
Comment 5 Oliver-Rainer Wittmann 2009-03-12 13:12:52 UTC
defect cause found:
<SwNumberFormat> instance for list level 5 is directly accessed in <SwNumRule>
instance, but for this list level no <SwNumberFormat> instance exists.
Fix for issue 25545 in cws hb12, integrated into DEV300m38 causes this crash.

solution:
Instead of calling method <SwNumRule::GetNumFmt(..)> call method
<SwNumRule::Get(..)>. This method provides a default <SwNumberFormat> instance,
if for the given list level none exists.

taking over this issue
Comment 6 Oliver-Rainer Wittmann 2009-03-12 13:17:53 UTC
fix in progress in cws sw31bf08
Comment 7 Oliver-Rainer Wittmann 2009-03-12 13:46:24 UTC
small change: fix will be made in cws fwk105 - I have hijacked this cws from CD ;-)
Comment 8 Oliver-Rainer Wittmann 2009-03-12 14:20:33 UTC
fixed in cws fwk105 - changed file:
/sw/source/filter/ww8/ww8par3.cxx, rev. 269401
Comment 9 Oliver-Rainer Wittmann 2009-03-13 11:35:59 UTC
OD->MRU: Checked in internal installation set of cws fwk105 - please verify.
Comment 10 michael.ruess 2009-03-16 11:39:26 UTC
Verified in CWS fwk105.
Comment 11 michael.ruess 2009-03-24 14:24:18 UTC
Checked fix in OOO310m7.