aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2015-06-13 08:51:11 +0200
committerThomas White <taw@bitwiz.org.uk>2015-06-13 08:51:11 +0200
commit9fce852e743e5fb364be9752906b35de0be78826 (patch)
treec0170c99f95f125ab3867723784312b56e9a39d5 /src
parent8de0086f42a9ae7df1d1be7381743ea577c29008 (diff)
Dirty hacks to make it work (for now)
Diffstat (limited to 'src')
-rw-r--r--src/sc_interp.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/sc_interp.c b/src/sc_interp.c
index 96efb4e..dc0bad4 100644
--- a/src/sc_interp.c
+++ b/src/sc_interp.c
@@ -866,7 +866,8 @@ static void exec_macro(SCBlock *bl, SCInterpreter *scin, SCBlock *child)
st->macro_real_block = bl;
mchild = sc_block_macro_child(bl);
- if ( mchild == NULL ) {
+
+ if ( (mchild == NULL) || (strcmp(sc_block_name(bl), "slidenumber")==0) ) {
int i;
const char *name;
@@ -906,10 +907,10 @@ static void delete_unused_subframes(struct frame *fr)
done = 1;
for ( i=start; i<fr->num_children; i++ ) {
if ( !fr->children[i]->visited ) {
- delete_subframe(fr, fr->children[i]);
- done = 0;
- start = i;
- break;
+ // delete_subframe(fr, fr->children[i]);
+ // done = 0;
+ // start = i;
+ // break;
} else {
delete_unused_subframes(fr->children[i]);
}