aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2018-02-23 16:26:51 +0100
committerThomas White <taw@physics.org>2018-02-23 18:32:45 +0100
commit468a1463ab69c458c3f96b11b8fb5b45d84ffe73 (patch)
tree37e953094d01accea86ac24bb43e99cbc731b904
parent8e54e0086e0ef14e75ad125c2cd56edd7b0dbf7b (diff)
Create frame at the right SC level
Fix needed because of 6dedc1eb
-rw-r--r--src/sc_editor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 3c5c064..75d29b7 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -1362,7 +1362,7 @@ static struct frame *create_frame(SCEditor *e, double x, double y,
fr = add_subframe(parent);
/* Add to SC */
- scblocks = sc_block_append_end(e->scblocks, "f", NULL, NULL);
+ scblocks = sc_block_append_end(sc_block_child(e->scblocks), "f", NULL, NULL);
fr->scblocks = scblocks;
sc_block_append_inside(scblocks, NULL, NULL, strdup(""));