Book a Demo

Author Topic: setpenwidth() does not propagate to sub-shape  (Read 3087 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
setpenwidth() does not propagate to sub-shape
« on: March 22, 2018, 05:48:47 pm »
The penwidth() setting doesn't seem to propagate to a sub-shape, whereas the other pen related methods do.

Code: [Select]
setpencolor(getuserbordercolor());
setpenwidth(getUserPenSize()); //<-doesn't work
setfillcolor(getuserfillcolor());
addsubshape("X",100,100);
shape X
{
noshadow=true;
setpenwidth(getUserPenSize());//<- need to set it here!
startpath();
...
}
Please rectify.  NOTE: this is also true of setpen()

Reported,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!