aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sc_editor.c4
-rw-r--r--src/slide_window.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 941c822..1d1e381 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -143,8 +143,8 @@ static gboolean resize_sig(GtkWidget *widget, GdkEventConfigure *event,
h = e->log_h;
}
e->top = interp_and_shape(e->scblocks, e->stylesheets, e->cbl,
- e->is, ISZ_EDITOR, 0, cr, w, h,
- e->lang);
+ e->is, ISZ_EDITOR, e->slidenum, cr,
+ w, h, e->lang);
recursive_wrap(e->top, pc);
}
diff --git a/src/slide_window.c b/src/slide_window.c
index a627ff1..c55fd8d 100644
--- a/src/slide_window.c
+++ b/src/slide_window.c
@@ -628,6 +628,7 @@ SlideWindow *slide_window_open(struct presentation *p, SCBlock *scblocks)
ch = sc_block_append_inside(scblocks, NULL, NULL, "");
}
sw->sceditor = sc_editor_new(ch, stylesheets, p->lang);
+ sc_editor_set_slidenum(sw->sceditor, slide_number(sw->p, scblocks));
scroll = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroll),