aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2017-03-02 22:41:55 +0100
committerThomas White <taw@bitwiz.org.uk>2017-03-02 22:45:14 +0100
commita6a8a827ff3c6133f229b0c444b42d4e690fef76 (patch)
treeedd80a35c40c32299e6d2331e483e37506d219c9 /src/narrative_window.c
parente7eede3273394f3479bb63f92e57780dfc8f2e3d (diff)
Substitute style sheet when there was no stylesheet before
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index d53002a..73b9677 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -273,14 +273,14 @@ static gint load_ss_response_sig(GtkWidget *d, gint response,
SCBlock **stylesheets;
+ /* Substitute the style sheet */
+ replace_stylesheet(nw->p, ss);
+
stylesheets = get_ss_list(nw->p);
sc_editor_set_stylesheets(nw->sceditor,
stylesheets);
free(stylesheets);
- /* Substitute the style sheet */
- replace_stylesheet(nw->p, ss);
-
/* Full rerender, first block may have
* changed */
sc_editor_set_scblock(nw->sceditor,