Apache OpenOffice (AOO) Bugzilla – Issue 102950
charts in writer have an incomplete border
Last modified: 2013-02-24 21:20:54 UTC
Create a chart within a writer document and leave the charts edit mode by clicking somewhere in the text document besides the chart. With OOo 3.1 the chart now shows a gray border line at the left and top edge. This looks ugly and incomplete. There was no border visible with OOo 3.0. I'll attach a picture to illustrate.
Created attachment 63093 [details] picture showing the problem
I will fix that problem by simply not painting those additional lines in case of charts within SwFlyFrm::Paint. I think this is the best solution as the chart can be partly transparent, dependent on what area and border settings are made within the chart. Then it can happen that the additional border lines from the writer do overlap with the dashed border of the chart. That again looks ugly. I'll attach an example with charts with different area and border settings.
Created attachment 63095 [details] example documentwith different charts
OD->IHA: Suppressing the additional lines is a possible solution. But, I am asking myself, what code change was caused the change in the painting of embedded objects. If you have something ready for debug, I would like to join you.
OD->IHA: It looks like, that the area taken by the embedded object's output is too large. In general it should inside the object's border rectangle and should not overlap with the border illustrating the size of the embedded object.
IHA->OD: Thanks for the offer :-). The problem was introduced by the new Anti-Aliasing feature. When switching off Anti-Aliasing under Tools->Options->View the additional borders do vanish. I have tricked around already a lot, but gained the most satisfying results with simply switching off the borders.
IHA->OD: As discussed off line we will take the simple solution for charts. If it happens that other OLE objects might show similar problems with the gray subsidiary lines in future it might be a good idea to set the flag ANTIALIASING_PIXELSNAPHAIRLINE for the antialiasing mode while painting those lines in SwSubsRects::PaintSubsidiary. But that could be a different issue. Fixed in CWS chart39. For charts no subsidiary lines are shown now as it was with OOo 3.0 and before.
@Sophie, please verify in CWS chart39. Thanks! Make sure to have Anti-Aliasing on on your Office (Tools->Options->StarOffice->View->Use Anti-Aliasing). Load the attached example ChartBordersInWriter.odt and display the document with different zoom factors. There should be no gray borders around the charts (only some green dashed borders for some of them).
Verified in CWS chart39 - No grey borders using different zoom and layout, also ok when zooming in preview. Sophie.
Verified in DEV300m54 under .deb version - Closing - Sophie