From 91f680b08931aaa43df551d18fdd4b6638fbac7b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 30 Oct 2018 18:07:47 +0100 Subject: Fix style warnings from static analyser --- src/sc_editor.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/sc_editor.c') diff --git a/src/sc_editor.c b/src/sc_editor.c index e95beb4..2f272d3 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -764,10 +764,10 @@ static void draw_resize_handle(cairo_t *cr, double x, double y) static void draw_overlay(cairo_t *cr, SCEditor *e) { - double x, y, w, h; - if ( e->selection != NULL ) { + double x, y, w, h; + draw_editing_box(cr, e->selection); x = e->selection->x; @@ -2139,8 +2139,6 @@ SCEditor *sc_editor_new(SCBlock *scblocks, Stylesheet *stylesheet, sceditor->stylesheet = stylesheet; - sceditor->bg_pixbuf = NULL; - err = NULL; sceditor->bg_pixbuf = gdk_pixbuf_new_from_resource("/uk/me/bitwiz/Colloquium/sky.png", &err); -- cgit v1.2.3