From: rwst Date: Wed, 12 Apr 2006 18:29:34 +0000 (+0000) Subject: _desktop was not init'ed, sometimes leading to crashes on doubleclick X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=239bab59b351d09a5797679df822b4003452cc60;p=inkscape.git _desktop was not init'ed, sometimes leading to crashes on doubleclick --- diff --git a/src/rubberband.cpp b/src/rubberband.cpp index dd16a62d8..813076806 100644 --- a/src/rubberband.cpp +++ b/src/rubberband.cpp @@ -14,13 +14,14 @@ #include "display/sodipodi-ctrlrect.h" #include "desktop.h" +#include "inkscape.h" #include "desktop-handles.h" #include "rubberband.h" Inkscape::Rubberband *Inkscape::Rubberband::_instance = NULL; Inkscape::Rubberband::Rubberband() - : _desktop(NULL), _canvas(NULL) + : _desktop(SP_ACTIVE_DESKTOP), _canvas(NULL) { }