aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2018-02-04 09:28:42 +0100
committerThomas White <taw@bitwiz.org.uk>2018-02-04 09:28:42 +0100
commitc05574d014e87df5bf3ac52ed7173375f70d7175 (patch)
tree8bbc45e11d30bf57b99ae7d3f3897e48e8969b22 /src
parent1105fc129d4f8fc13e20caa9fca074a0fd8c6baf (diff)
Fix next/previous slide in slide window
Diffstat (limited to 'src')
-rw-r--r--src/slide_window.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/slide_window.c b/src/slide_window.c
index 5dbf6b3..a24967f 100644
--- a/src/slide_window.c
+++ b/src/slide_window.c
@@ -110,15 +110,9 @@ static void delete_frame_sig(GSimpleAction *action, GVariant *parameter,
/* Change the editor's slide to "np" */
void change_edit_slide(SlideWindow *sw, SCBlock *np)
{
- SCBlock *ch;
-
sc_editor_set_slidenum(sw->sceditor, slide_number(sw->p, np));
- ch = sc_block_child(np);
- if ( ch == NULL ) {
- ch = sc_block_append_inside(sw->scblocks, NULL, NULL, "");
- }
- sc_editor_set_scblock(sw->sceditor, ch);
+ sc_editor_set_scblock(sw->sceditor, np);
sw->scblocks = np;
}