Fossil SCM
Update to the lastest version of Pikchr which fixes a bug in the computation of bounding boxes for circles when the size of the circle is set using the "diameter" attribute.
Commit
287d13f3911a1e8fe7daeb542fac8f06d3b2a5bcc2704de80bdf04a26488501f
Parent
54efe3aa569a242…
1 file changed
+2
-1
+2
-1
| --- extsrc/pikchr.c | ||
| +++ extsrc/pikchr.c | ||
| @@ -3807,10 +3807,11 @@ | ||
| 3807 | 3807 | } |
| 3808 | 3808 | static void circleNumProp(Pik *p, PObj *pObj, PToken *pId){ |
| 3809 | 3809 | /* For a circle, the width must equal the height and both must |
| 3810 | 3810 | ** be twice the radius. Enforce those constraints. */ |
| 3811 | 3811 | switch( pId->eType ){ |
| 3812 | + case T_DIAMETER: | |
| 3812 | 3813 | case T_RADIUS: |
| 3813 | 3814 | pObj->w = pObj->h = 2.0*pObj->rad; |
| 3814 | 3815 | break; |
| 3815 | 3816 | case T_WIDTH: |
| 3816 | 3817 | pObj->h = pObj->w; |
| @@ -8095,6 +8096,6 @@ | ||
| 8095 | 8096 | |
| 8096 | 8097 | |
| 8097 | 8098 | #endif /* PIKCHR_TCL */ |
| 8098 | 8099 | |
| 8099 | 8100 | |
| 8100 | -#line 8125 "pikchr.c" | |
| 8101 | +#line 8126 "pikchr.c" | |
| 8101 | 8102 |
| --- extsrc/pikchr.c | |
| +++ extsrc/pikchr.c | |
| @@ -3807,10 +3807,11 @@ | |
| 3807 | } |
| 3808 | static void circleNumProp(Pik *p, PObj *pObj, PToken *pId){ |
| 3809 | /* For a circle, the width must equal the height and both must |
| 3810 | ** be twice the radius. Enforce those constraints. */ |
| 3811 | switch( pId->eType ){ |
| 3812 | case T_RADIUS: |
| 3813 | pObj->w = pObj->h = 2.0*pObj->rad; |
| 3814 | break; |
| 3815 | case T_WIDTH: |
| 3816 | pObj->h = pObj->w; |
| @@ -8095,6 +8096,6 @@ | |
| 8095 | |
| 8096 | |
| 8097 | #endif /* PIKCHR_TCL */ |
| 8098 | |
| 8099 | |
| 8100 | #line 8125 "pikchr.c" |
| 8101 |
| --- extsrc/pikchr.c | |
| +++ extsrc/pikchr.c | |
| @@ -3807,10 +3807,11 @@ | |
| 3807 | } |
| 3808 | static void circleNumProp(Pik *p, PObj *pObj, PToken *pId){ |
| 3809 | /* For a circle, the width must equal the height and both must |
| 3810 | ** be twice the radius. Enforce those constraints. */ |
| 3811 | switch( pId->eType ){ |
| 3812 | case T_DIAMETER: |
| 3813 | case T_RADIUS: |
| 3814 | pObj->w = pObj->h = 2.0*pObj->rad; |
| 3815 | break; |
| 3816 | case T_WIDTH: |
| 3817 | pObj->h = pObj->w; |
| @@ -8095,6 +8096,6 @@ | |
| 8096 | |
| 8097 | |
| 8098 | #endif /* PIKCHR_TCL */ |
| 8099 | |
| 8100 | |
| 8101 | #line 8126 "pikchr.c" |
| 8102 |