Fossil SCM

Fix the ".end" and ".start" corners for block obects in the Pikchr formatter.

drh 2020-09-12 20:56 trunk
Commit 66b2ae5a58071e994560575ff63a07be134db66a67356f21eceaf8a1614493da
1 file changed +3 -8
+3 -8
--- src/pikchr.c
+++ src/pikchr.c
@@ -5783,19 +5783,14 @@
57835783
}
57845784
pt.x += pElem->ptAt.x;
57855785
pt.y += pElem->ptAt.y;
57865786
return pt;
57875787
}
5788
- if( !pClass->isLine ){
5789
- pik_error(0, pEdge,
5790
- "only line objects have \"start\" and \"end\" points");
5791
- return pt;
5792
- }
57935788
if( pEdge->eType==T_START ){
5794
- return pElem->aPath[0];
5789
+ return pElem->ptEnter;
57955790
}else{
5796
- return pElem->aPath[pElem->nPath-1];
5791
+ return pElem->ptExit;
57975792
}
57985793
}
57995794
58005795
/* Do a linear interpolation of two positions.
58015796
*/
@@ -6803,6 +6798,6 @@
68036798
printf("</body></html>\n");
68046799
return 0;
68056800
}
68066801
#endif /* PIKCHR_SHELL */
68076802
6808
-#line 6833 "pikchr.c"
6803
+#line 6828 "pikchr.c"
68096804
--- src/pikchr.c
+++ src/pikchr.c
@@ -5783,19 +5783,14 @@
5783 }
5784 pt.x += pElem->ptAt.x;
5785 pt.y += pElem->ptAt.y;
5786 return pt;
5787 }
5788 if( !pClass->isLine ){
5789 pik_error(0, pEdge,
5790 "only line objects have \"start\" and \"end\" points");
5791 return pt;
5792 }
5793 if( pEdge->eType==T_START ){
5794 return pElem->aPath[0];
5795 }else{
5796 return pElem->aPath[pElem->nPath-1];
5797 }
5798 }
5799
5800 /* Do a linear interpolation of two positions.
5801 */
@@ -6803,6 +6798,6 @@
6803 printf("</body></html>\n");
6804 return 0;
6805 }
6806 #endif /* PIKCHR_SHELL */
6807
6808 #line 6833 "pikchr.c"
6809
--- src/pikchr.c
+++ src/pikchr.c
@@ -5783,19 +5783,14 @@
5783 }
5784 pt.x += pElem->ptAt.x;
5785 pt.y += pElem->ptAt.y;
5786 return pt;
5787 }
 
 
 
 
 
5788 if( pEdge->eType==T_START ){
5789 return pElem->ptEnter;
5790 }else{
5791 return pElem->ptExit;
5792 }
5793 }
5794
5795 /* Do a linear interpolation of two positions.
5796 */
@@ -6803,6 +6798,6 @@
6798 printf("</body></html>\n");
6799 return 0;
6800 }
6801 #endif /* PIKCHR_SHELL */
6802
6803 #line 6828 "pikchr.c"
6804

Keyboard Shortcuts

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