aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
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);