Fossil SCM
Fix a minor problem with the "behind" attribute in Pikchr
Commit
e5e2dac0761eee663e102604b1730df052f50321b8dd6e55f02b9199dfa7154c
Parent
af52ad89ca10a3b…
1 file changed
+1
-1
+1
-1
| --- src/pikchr.c | ||
| +++ src/pikchr.c | ||
| @@ -5556,11 +5556,11 @@ | ||
| 5556 | 5556 | /* Lower the layer of the current element so that it is behind the |
| 5557 | 5557 | ** given element. |
| 5558 | 5558 | */ |
| 5559 | 5559 | static void pik_behind(Pik *p, PElem *pOther){ |
| 5560 | 5560 | PElem *pElem = p->cur; |
| 5561 | - if( pElem->iLayer>=pOther->iLayer ){ | |
| 5561 | + if( p->nErr==0 && pElem->iLayer>=pOther->iLayer ){ | |
| 5562 | 5562 | pElem->iLayer = pOther->iLayer - 1; |
| 5563 | 5563 | } |
| 5564 | 5564 | } |
| 5565 | 5565 | |
| 5566 | 5566 | |
| 5567 | 5567 |
| --- src/pikchr.c | |
| +++ src/pikchr.c | |
| @@ -5556,11 +5556,11 @@ | |
| 5556 | /* Lower the layer of the current element so that it is behind the |
| 5557 | ** given element. |
| 5558 | */ |
| 5559 | static void pik_behind(Pik *p, PElem *pOther){ |
| 5560 | PElem *pElem = p->cur; |
| 5561 | if( pElem->iLayer>=pOther->iLayer ){ |
| 5562 | pElem->iLayer = pOther->iLayer - 1; |
| 5563 | } |
| 5564 | } |
| 5565 | |
| 5566 | |
| 5567 |
| --- src/pikchr.c | |
| +++ src/pikchr.c | |
| @@ -5556,11 +5556,11 @@ | |
| 5556 | /* Lower the layer of the current element so that it is behind the |
| 5557 | ** given element. |
| 5558 | */ |
| 5559 | static void pik_behind(Pik *p, PElem *pOther){ |
| 5560 | PElem *pElem = p->cur; |
| 5561 | if( p->nErr==0 && pElem->iLayer>=pOther->iLayer ){ |
| 5562 | pElem->iLayer = pOther->iLayer - 1; |
| 5563 | } |
| 5564 | } |
| 5565 | |
| 5566 | |
| 5567 |