aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-10-30 18:07:47 +0100
committerThomas White <taw@bitwiz.me.uk>2018-10-30 18:07:47 +0100
commit91f680b08931aaa43df551d18fdd4b6638fbac7b (patch)
tree250c45ab354dd55a67f8a7fe0507a80127f0e1b7 /src/sc_editor.c
parent19f20ab06476f93977d1c7130b76f7c31d198936 (diff)
Fix style warnings from static analyser
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r--src/sc_editor.c6
1 files changed, 2 insertions, 4 deletions
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);