https://issues.apache.org/ooo/show_bug.cgi?id=121448
Bug ID: 121448
Issue Type: DEFECT
Summary: Inconsistent fill and line color across applications
Classification: Code
Product: framework
Version: AOO 3.4.1
Hardware: All
OS: All
Status: CONFIRMED
Severity: normal
Priority: P3
Component: ui
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
1) Insert a chart in a Writer document. Draw a rectangle on the chart. Default
line color is Black, default fill color is Blue 8
2) Install the Report Builder extension, draw a rectangle. Default line color
is Black, default fill color is Blue 8
3) Create a new Writer document. Insert a rectangle. Default line color is
Gray, default fill color is Blue 9.
4) Create a new Writer document. Insert a rectangle from the Basic Shapes
toolbar: though the toolbars say line color is Gray and fill color is Blue 9,
in the view the line color is Black and fill color is Blue 8.
The different behavior between both rectangles can be reproduced also in Calc,
but not in Draw/Impress. In Writer/Calc all custom shapes have this
misbehavior: the shape model informs fill color = Blue 8, line color = Gray;
but the view shows the old defaults.
(3) and (4) seems to be fixed by changing the defaults in XOutdevItemPool
constructor:
svx/source/xoutdev/xpool.cxx
const Color aNullLineCol(RGB_Color(COL_BLACK));
const Color aNullFillCol(RGB_COLORDATA( 153, 204, 255 ));
replacing them with the new default defined in svx/inc/svx/xdef.hxx
#define COL_DEFAULT_SHAPE_FILLING RGB_COLORDATA( 0xCF, 0xE7, 0xF5 )
#define COL_DEFAULT_SHAPE_STROKE RGB_COLORDATA( 128, 128, 128 )
In (1) and (2) both model and view have old defaults, this seems to happen
because in chart2 and reportdesign there is no call to
SetDrawingLayerPoolDefaults like in the other modules.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.