Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | wrong control font in design mode | ||||||
---|---|---|---|---|---|---|---|
Product: | Base | Reporter: | Frank Schönheit <frank.schoenheit> | ||||
Component: | code | Assignee: | wolframgarten | ||||
Status: | CLOSED FIXED | QA Contact: | issues@dba <issues> | ||||
Severity: | Trivial | ||||||
Priority: | P3 | CC: | issues | ||||
Version: | DEV300m30 | Keywords: | regression | ||||
Target Milestone: | OOo 3.1 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Attachments: |
|
Description
Frank Schönheit
2008-08-27 09:30:37 UTC
Created attachment 56037 [details]
document to reproduce the bug case
adding regression keyword (probably caused by aw033), targeting AW: Happens only in SW, in Draw/Impress the font is okay. Problem is that in ControlPrimitive2D::createBitmapDecomposition where the fallback decompose tries to create a bitmap displaying the control the xControlView->setZoom(...) still is somehow related to the twips/100thmm differences between Writer and Draw/Impress/Calc. This relationship is deeply buried in formcontrols and toolkit somewhere and has to do with the SetZoom at VCL-Windows and the following update of the control font. It also has to do with the fact that controls in edit mode are VCL-Windows and have the application window as parent already. To fix this for the fallback - where no MapMode is available by purpose - i have to query the control for it's implementation, get the VCL-Window and check if it's parent uses 100thmm. Only then do i need to adapt the zoom at all. If it's in twips, the positionControlForPaint() which usually happens before decompose in ViewObjectContactOfUnoControl::createPrimitive2DSequence seems to be enough and zoom is okay despite rendering to a VDev without any MapMode. AW: Checked in temporary solution, works. Maybe necessary to rework parts of FormControl visualisations. AW->WG: Please verify. Fonts for form controls (e.g. simple button) should have the same font visualisation in SW and SD now as in DEV300 m29 (or the 3.0 release path if You have one installed already) Verified in CWS. Tested in m38. Closed. |