Fossil SCM
Fix the ".end" and ".start" corners for block obects in the Pikchr formatter.
Commit
66b2ae5a58071e994560575ff63a07be134db66a67356f21eceaf8a1614493da
Parent
4d946271f73ed3f…
1 file changed
+3
-8
+3
-8
| --- src/pikchr.c | ||
| +++ src/pikchr.c | ||
| @@ -5783,19 +5783,14 @@ | ||
| 5783 | 5783 | } |
| 5784 | 5784 | pt.x += pElem->ptAt.x; |
| 5785 | 5785 | pt.y += pElem->ptAt.y; |
| 5786 | 5786 | return pt; |
| 5787 | 5787 | } |
| 5788 | - if( !pClass->isLine ){ | |
| 5789 | - pik_error(0, pEdge, | |
| 5790 | - "only line objects have \"start\" and \"end\" points"); | |
| 5791 | - return pt; | |
| 5792 | - } | |
| 5793 | 5788 | if( pEdge->eType==T_START ){ |
| 5794 | - return pElem->aPath[0]; | |
| 5789 | + return pElem->ptEnter; | |
| 5795 | 5790 | }else{ |
| 5796 | - return pElem->aPath[pElem->nPath-1]; | |
| 5791 | + return pElem->ptExit; | |
| 5797 | 5792 | } |
| 5798 | 5793 | } |
| 5799 | 5794 | |
| 5800 | 5795 | /* Do a linear interpolation of two positions. |
| 5801 | 5796 | */ |
| @@ -6803,6 +6798,6 @@ | ||
| 6803 | 6798 | printf("</body></html>\n"); |
| 6804 | 6799 | return 0; |
| 6805 | 6800 | } |
| 6806 | 6801 | #endif /* PIKCHR_SHELL */ |
| 6807 | 6802 | |
| 6808 | -#line 6833 "pikchr.c" | |
| 6803 | +#line 6828 "pikchr.c" | |
| 6809 | 6804 |
| --- 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 |