Apache OpenOffice (AOO) Bugzilla – Issue 99665
Charts in writer look ugly with anti-aliasing
Last modified: 2013-02-24 21:19:59 UTC
This is a follow up issue of issue 98289. Create a default chart in a writer document, leave the chart edit mode and look at the created metafile replacement. The contours of the columns, the grid lines and the contours of the symbols in the legend look blurry. Switch of anti-aliasing and those horizontal and vertical lines do display clear as they should.
AW: This should be relatively easy. When i think about it it should be because SW uses it's own OLE implementation (one more argument to CHANGE this) and does not set AA at the target OutDev when replaying the OLE's MetaFile. Also adding some mildly interested people to CC here. Since i am on vacation, this task will be doable relatively quickly and it looks so official, i will also add some more people to CC. AW->OD: Please try to encapsulate the SW's OLE MetaFile paint with: - check if DrawingLayer AntiAliasing is on (grep for SvtDrawingLayerOptions) - Switch AA On/Off accordingly (rescue and restore old state) at OutputDevice (HDU and PL can tell You how to do that at OutDev). HTH, Greetings from vacation from Naples, Florida.
Ok, taking over this task. As discussed with HDU, I will switch On/Off AntiAliasing for embedded charts in Writer according to the DrawingLayer AntiAliasing.
On output of the replacement image of an embedded chart in Writer the AntiAliasing mode at the output device is adopted - ANTIALIASING_PIXELSNAPHAIRLINE is set - in case that AntiAliasing is activated at the DrawingLayer. Fixed in cws hb20 - changed files: /sw/source/core/doc/notxtfrm.cxx /sw/source/core/ole/ndole.cxx /sw/inc/ndole.hxx /sw/source/core/draw/dview.cxx /sw/source/core/inc/dview.hxx rev. 268967
OD->MRU: Checked in internal installation of cws hb20 - please verify.
Verified fix in CWS hb20 - Charts now look really smoother in AA mode.
Checked in OOO310m7.