From: dooglus Date: Tue, 6 Mar 2007 22:45:50 +0000 (+0000) Subject: Fix 1675309: CanvasView::close() was previously just hiding the canvas, not closing it. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a1077b46c18fe056632fa3ed5098a5c6a8ded3ae;p=synfig.git Fix 1675309: CanvasView::close() was previously just hiding the canvas, not closing it. git-svn-id: http://svn.voria.com/code@266 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index 8ddf3d4..f882d12 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -1946,9 +1946,7 @@ CanvasView::refresh_rend_desc() bool CanvasView::close() { - hide(); - // I think this is bad..., removing - // get_instance()->canvas_view_list().erase(std::find(get_instance()->canvas_view_list().begin(),get_instance()->canvas_view_list().end(),this)); + get_instance()->safe_close(); return false; }