As usual, when explaining a problem you really start thinking.
Not a bug but my mistake
When setting the color, tickness and style with dPen(), one must used the dLine() syntax without the color option.
dLine(x1,y1,x2,y2) and not dLine(x1,y1.x2.xy,color,thickness).
Makes sense...
Arie