Issue 31506 - Layout wants to paint even if window isn't completely visible
Summary: Layout wants to paint even if window isn't completely visible
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: 680m47
Hardware: All All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-15 10:01 UTC by Mathias_Bauer
Modified: 2017-05-20 11:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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 "issues@openoffice.apache.org".
Comment 2 Marcus 2017-05-20 11:25:42 UTC
Reset assigne to the default "issues@openoffice.apache.org".