aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-03-03 21:26:38 +0100
committerThomas White <taw@physics.org>2018-03-03 21:26:38 +0100
commit5240c17e9e7823f8e2b53a1ce61a6a6b4681ad8b (patch)
treee0d067e253ead08722675fd3516612660db3a6a7
parent833acd406925d2f63420a81094b31d7252e6385d (diff)
scan_runs_for_scblock: Check scblock as well as rscblock
Allows macros to be found and deleted properly
-rw-r--r--src/frame.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index 96e0d37..4595610 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1162,6 +1162,10 @@ static Paragraph *scan_runs_for_scblock(struct frame *fr, int pn1, int pn2,
*run = j;
return fr->paras[i];
}
+ if ( fr->paras[i]->runs[j].scblock == bl ) {
+ *run = j;
+ return fr->paras[i];
+ }
}
}
return NULL;