Bug 180885

Summary: kword freeze after click on print preview
Product: kword Reporter: sts
Component: generalAssignee: Thomas Zander <zander>
Status: RESOLVED FIXED    
Severity: normal    
Priority: HI    
Version: 1.9.8   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description sts 2009-01-15 22:05:51 UTC
Version:           2.0 beta-5 (using 4.1.96 (KDE 4.1.96 (KDE 4.2 RC1)) "release 76.2", KDE:KDE4:Factory:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.27.7-9-default

it happens with the template "Buntes Dokument" (colored document)

I open this template and go to print preview. -> kword freeze
Comment 1 Thomas Zander 2009-01-30 13:57:45 UTC
SVN commit 918661 by zander:

Fixes: kword freeze after click on print preview
Details: The printing framework assumes multi-threading, which allows the printing app to wait for the
    main thread to finish things like text layout.
    After I changed the print-preview to be non-threaded due to the limitation of the print-priview-dialog
    I introduced the possibility for a deadlock.
    Fixing this by only locking if we are called from the non-main thread.
BUG:180885

 M  +7 -1      TextShape.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=918661