Fossil SCM

Latest pikchr.c fixes an issue with "same" and lines that have a "to" attribute.

drh 2020-10-01 16:01 trunk
Commit 42caafaf3ba5e5e26d1fdeefa2aa1fba8744d9a7a706085ac85e1e81a9b7eae0
1 file changed +2 -1
+2 -1
--- src/pikchr.c
+++ src/pikchr.c
@@ -5684,10 +5684,11 @@
56845684
}
56855685
if( pObj->bClose ){
56865686
pik_error(p, pTk, "polygon is closed");
56875687
return;
56885688
}
5689
+ pik_reset_samepath(p);
56895690
if( n==0 || p->mTPath==3 || p->thenFlag ){
56905691
n = pik_next_rpath(p, pTk);
56915692
}
56925693
p->aTPath[n] = *pPt;
56935694
p->mTPath = 3;
@@ -7635,6 +7636,6 @@
76357636
}
76367637
return 0;
76377638
}
76387639
#endif /* PIKCHR_SHELL */
76397640
7640
-#line 7665 "pikchr.c"
7641
+#line 7666 "pikchr.c"
76417642
--- src/pikchr.c
+++ src/pikchr.c
@@ -5684,10 +5684,11 @@
5684 }
5685 if( pObj->bClose ){
5686 pik_error(p, pTk, "polygon is closed");
5687 return;
5688 }
 
5689 if( n==0 || p->mTPath==3 || p->thenFlag ){
5690 n = pik_next_rpath(p, pTk);
5691 }
5692 p->aTPath[n] = *pPt;
5693 p->mTPath = 3;
@@ -7635,6 +7636,6 @@
7635 }
7636 return 0;
7637 }
7638 #endif /* PIKCHR_SHELL */
7639
7640 #line 7665 "pikchr.c"
7641
--- src/pikchr.c
+++ src/pikchr.c
@@ -5684,10 +5684,11 @@
5684 }
5685 if( pObj->bClose ){
5686 pik_error(p, pTk, "polygon is closed");
5687 return;
5688 }
5689 pik_reset_samepath(p);
5690 if( n==0 || p->mTPath==3 || p->thenFlag ){
5691 n = pik_next_rpath(p, pTk);
5692 }
5693 p->aTPath[n] = *pPt;
5694 p->mTPath = 3;
@@ -7635,6 +7636,6 @@
7636 }
7637 return 0;
7638 }
7639 #endif /* PIKCHR_SHELL */
7640
7641 #line 7666 "pikchr.c"
7642

Keyboard Shortcuts

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