Number: 785
Title: Spurious PostScript nodecolor+filled in filled predefined shapes
Submitter: Mark RISON
Date: Sat Sep 10 13:14:30 2005
Subsys: Dot
Version: 2.4 (Wed Jul 20 20:58:38 UTC 2005)
System: *-*-
Severity: cosmetic
Problem:
I have observed the following issue with filled nodes in PostScript output mode:

There's a spurious 'nodecolor' before setting the fill colour, if the (line) color attribute is passed, and there's a 'filled' which doesn't actually do anything (see its definition):


% node2a
gsave 10 dict begin
filled
0.000 1.000 1.000 nodecolor
0.667 1.000 1.000 nodecolor

% node3a gsave 10 dict begin filled 0.000 1.000 1.000 nodecolor 0.000 1.000 1.000 nodecolor

but the spurious 'nodecolor' is not present if no (line) color attribute is passed:


% node4a
gsave 10 dict begin
filled
0.667 1.000 1.000 nodecolor

Input:
digraph test
{
node2a [ shape = box, style = filled, fillcolor = blue, color = red ];
node3a [ shape = box, style = filled, color = red ];
node4a [ shape = box, style = filled, fillcolor = blue ];
}
Comments:
[erg] The output is correct. This would fall in the category of an optimization.
Owner: erg
Status: Request