Code

_desktop was not init'ed, sometimes leading to crashes on doubleclick
authorrwst <rwst@users.sourceforge.net>
Wed, 12 Apr 2006 18:29:34 +0000 (18:29 +0000)
committerrwst <rwst@users.sourceforge.net>
Wed, 12 Apr 2006 18:29:34 +0000 (18:29 +0000)
src/rubberband.cpp

index dd16a62d841fd5b18cdfbd3703b3ea2fadd3f274..8130768061d82d2e8dda8c0051b8b2be705ca4cc 100644 (file)
 
 #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)
 {
 
 }