Created attachment 1177 [details]
patch to add curly braces
Creating a PDF under the "gray" colormodel converts fill colors to gray, but strokes remain colorful.
The function PDF_SetLineColor checks if colormodel gray or cmyk and otherwise assumes rgb. The final "else" appears to be missing curly braces, which results in the rgb color being set in the PDF command stream regardless of the colormodel. Indenting and the existence of braces in the analogous PDF_SetFill function implies that this is bug rather than a feature.
Patch attached relative to this R-devel:
Last Changed Date: 2011-02-22
Thanks, now fixed in R-devel (r54576)