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.

drh 2022-04-25 01:31 trunk
Commit 287d13f3911a1e8fe7daeb542fac8f06d3b2a5bcc2704de80bdf04a26488501f
1 file changed +2 -1
+2 -1
--- extsrc/pikchr.c
+++ extsrc/pikchr.c
@@ -3807,10 +3807,11 @@
38073807
}
38083808
static void circleNumProp(Pik *p, PObj *pObj, PToken *pId){
38093809
/* For a circle, the width must equal the height and both must
38103810
** be twice the radius. Enforce those constraints. */
38113811
switch( pId->eType ){
3812
+ case T_DIAMETER:
38123813
case T_RADIUS:
38133814
pObj->w = pObj->h = 2.0*pObj->rad;
38143815
break;
38153816
case T_WIDTH:
38163817
pObj->h = pObj->w;
@@ -8095,6 +8096,6 @@
80958096
80968097
80978098
#endif /* PIKCHR_TCL */
80988099
80998100
8100
-#line 8125 "pikchr.c"
8101
+#line 8126 "pikchr.c"
81018102
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button