diff options
-rw-r--r-- | src/mainwindow.c | 4 | ||||
-rw-r--r-- | src/wrap.c | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index aa77ce5..ed22a95 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -1588,7 +1588,11 @@ static struct frame *create_frame(struct presentation *p, double x, double y, } fr = add_subframe(parent); + + /* Add to SC */ + show_sc_blocks(parent->scblocks); fr->scblocks = NULL; + fr->x = x; fr->y = y; fr->w = w; @@ -921,6 +921,12 @@ int wrap_contents(struct frame *fr) l->boxes[0].width = 0; /* FIXME: Get ascent and descent from font metrics for * whichever font will be used in this box */ + } else { + l->boxes[0].scblock = fr->scblocks; + l->boxes[0].offs_char = 0; + l->boxes[0].ascent = 10000; + l->boxes[0].height = 10000; + l->boxes[0].width = 0; } } |