Bug 57640

Summary: Kword crashes when inserting bullets or enumertaions
Product: kword Reporter: Jorge Adriano <jorge.adriano>
Component: generalAssignee: Thomas Zander <zander>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: 1.5 or before   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Backtrace from the crash

Description Jorge Adriano 2003-04-24 12:45:39 UTC
Version:           1.2.90 (using KDE 3.1.1)
Installed from:    SuSE
Compiler:          gcc version 2.95.3 20010315 (SuSE)
OS:          Linux (i686) release 2.4.16-4GB

Whenever I try to insert bullets or enumerations, kword crashes :-/
Comment 1 David Faure 2003-04-24 13:08:03 UTC
Subject: Re:  New: Kword crashes when inserting bullets or enumertaions

On Thursday 24 April 2003 12:45, you wrote:
> Whenever I try to insert bullets or enumerations, kword crashes :-/

Huh - any backtrace?

Comment 2 Jorge Adriano 2003-04-24 13:59:00 UTC
Created attachment 1425 [details]
Backtrace from the crash
Comment 3 Jorge Adriano 2003-04-24 13:59:46 UTC
Opsss sorry. Saved it but forgot to attach it. 
Done! 
Comment 4 David Faure 2003-04-25 00:33:36 UTC
Subject: koffice/lib/kotext

CVS commit by faure: 

[jowenn] that works
Fixed crash in counterFormat() due to the style having no parent (strange, though).
CCMAIL: 57640-done@bugs.kde.org
I withdraw everything I said about kword-3.1-beta1 being stable :}


  M +1 -1      koparagcounter.cc   1.31


--- koffice/lib/kotext/koparagcounter.cc  #1.30:1.31
@@ -600,5 +600,5 @@ KoTextFormat* KoParagCounter::counterFor
     KoTextFormat format( *refFormat );
     format.setVAlign( KoTextFormat::AlignNormal );
-    return refFormat->parent()->format( &format );
+    return paragraph->textDocument()->formatCollection()->format( &format );
     /*paragraph->paragFormat()*/
 }


Comment 5 Jorge Adriano 2003-04-25 11:18:02 UTC
Wow, that was fast! Nice work ;)