Issue 31506

Summary: Layout wants to paint even if window isn't completely visible
Product: Writer Reporter: Mathias_Bauer
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P4 CC: issues
Version: 680m47   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Mathias_Bauer 2004-07-15 10:01:43 UTC
In our current CWS mav09 we changed the way of inplace activation so that only
one resize event is generated, and it appears very late in time.

In the meantime the Writer gets a notification about a "Title changed" event,
updates all fields and starts layouting. As a result, the SwRootFrm::Paint
method is called though the edit window is not visible completely.

Call stack:

 	sw680mi.dll!SwLayVout::Enter(ViewShell * pShell=0x0b10e728, SwRect &
rRect={...}, unsigned char bOn=' ')  Line 257	C++
 	sw680mi.dll!SwRootFrm::Paint(const SwRect & rRect={...})  Line 2209	C++
 	sw680mi.dll!ViewShell::ImplEndAction(const unsigned char bIdleEnd=0)  Line 384	C++
 	sw680mi.dll!SwCrsrShell::EndAction(const unsigned char bIdleEnd=0)  Line 353
+ 0x1a	C++
 	sw680mi.dll!SwEditShell::EndAllAction()  Line 202	C++
	sw680mi.dll!SwDocShell::Notify(SfxBroadcaster & __formal={...}, const SfxHint &
rHint={...})  Line 421	C++
 	svl680mi.dll!SfxBroadcaster::Broadcast()  + 0x58	C++
 	sfx680mi.dll!SfxObjectShell::SetNamedVisibility_Impl()  Line 889 + 0x26	C++
 	sfx680mi.dll!SfxViewFrame::GetDocNumber_Impl()  Line 2115	C++
 	sfx680mi.dll!SfxViewFrame::Show()  Line 2183	C++
 	sfx680mi.dll!SfxTopFrame::InsertDocument(SfxObjectShell * pDoc=0x068c7b18) 
Line 959	C++

I only changed the assertion in SwLayVOut::Enter that complained that the
VisArea is too small (this is a result of the fact that the window is not
visible, so its output size is still (0,0)!).
Comment 1 Marcus 2017-05-20 11:24:50 UTC
Reset assigne to the default "".
Comment 2 Marcus 2017-05-20 11:25:42 UTC
Reset assigne to the default "".