Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Page setup: preview misses a repaint | ||||||
---|---|---|---|---|---|---|---|
Product: | Draw | Reporter: | wolframgarten | ||||
Component: | ui | Assignee: | groucho266 | ||||
Status: | CLOSED FIXED | QA Contact: | |||||
Severity: | Trivial | ||||||
Priority: | P3 | CC: | hanya.runo, issues, oooforum | ||||
Version: | 680m124 | ||||||
Target Milestone: | 4.2.0 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Attachments: |
|
Description
wolframgarten
2005-08-17 12:55:24 UTC
OpenOffice 2.2.1 (Windows) The issue still exists, however, I would like to rephrase it. The 'Page Setup' dialog box displays an invalid preview when displayed for the first time. To reproduce the the issue: 1. use a default installation of OpenOffice or use the margins 1.00cm for the four borders (Format > Page...); 2. Observe the preview drawing; 3. Select the Landscape then Portrait orientation; 4. You should notice a difference in the preview drawing. However, if you change the margins, close the window, and open it again, you'll notice that the preview somehow updated. It look like there is a 1.00cm gap between the initial preview and the 'refreshed' one! Up Still not solved in 4.0.1 When the dialog is opened, SvxPageDescPage::InitHeadFoot_Impl method is called from Reset method and then ActivatePage method. SID_ATTR_PAGE_SIZE value of taken from the argument SfxItemSet type of InitHeadFoot_Impl is different between the calls. So when I push Reset button after the dialog is shown, the preview is ok. But when I change to Background tab once and return back to the Page tab, ActivatePage method is called and bad(?) page size is set and the preview is bad. (In reply to hanya from comment #3) > So when I push Reset button after the dialog is shown, the preview is ok. > But when I change to Background tab once and return back to the Page tab, > ActivatePage method is called and bad(?) page size is set and the preview > is bad. This is incorrect. Both page size are the same. In Reset method, SvxPageDescPage::UpdateExample_Impl method is called after calling InitHeadFoot_Impl method and it overwrite the size of the preview in TWIP. Created attachment 82482 [details]
Patch to update size value of the preview at the tab page activation
UpdateExample_Impl method should be called after calling InitHeadFoot_Impl method.
Because size value of the preview window is updated by the real page size.
UpdateExample_Impl method update size value of the preview in calculated twips.
"hanya" committed SVN revision 1595429 into trunk: #i53447# update example view for Draw during the activation of the tab page Fixed on trunk. |