Fossil SCM

Fix a minor problem with the "behind" attribute in Pikchr

drh 2020-09-19 04:29 trunk
Commit e5e2dac0761eee663e102604b1730df052f50321b8dd6e55f02b9199dfa7154c
1 file changed +1 -1
+1 -1
--- src/pikchr.c
+++ src/pikchr.c
@@ -5556,11 +5556,11 @@
55565556
/* Lower the layer of the current element so that it is behind the
55575557
** given element.
55585558
*/
55595559
static void pik_behind(Pik *p, PElem *pOther){
55605560
PElem *pElem = p->cur;
5561
- if( pElem->iLayer>=pOther->iLayer ){
5561
+ if( p->nErr==0 && pElem->iLayer>=pOther->iLayer ){
55625562
pElem->iLayer = pOther->iLayer - 1;
55635563
}
55645564
}
55655565
55665566
55675567
--- 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

Keyboard Shortcuts

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