From: buliabyak Date: Wed, 22 Nov 2006 00:51:59 +0000 (+0000) Subject: rearrange code to make rubberband a bit more interruptibility-proof X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2d02a258df2d7cb1eeb460a93e13b01f5526001b;p=inkscape.git rearrange code to make rubberband a bit more interruptibility-proof --- diff --git a/src/rubberband.cpp b/src/rubberband.cpp index 9ada46f52..0de3cd763 100644 --- a/src/rubberband.cpp +++ b/src/rubberband.cpp @@ -38,13 +38,14 @@ void Inkscape::Rubberband::start(SPDesktop *d, NR::Point const &p) void Inkscape::Rubberband::stop() { + _started = false; + if (_canvas) { - gtk_object_destroy((GtkObject *) _canvas); + GtkObject *temp = _canvas; _canvas = NULL; + gtk_object_destroy(temp); sp_canvas_end_forced_full_redraws(_desktop->canvas); } - - _started = false; } void Inkscape::Rubberband::move(NR::Point const &p)