Fix 1675309: CanvasView::close() was previously just hiding the canvas, not closing it.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 6 Mar 2007 22:45:50 +0000 (22:45 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 6 Mar 2007 22:45:50 +0000 (22:45 +0000)
git-svn-id: http://svn.voria.com/code@266 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/canvasview.cpp

index 8ddf3d4..f882d12 100644 (file)
@@ -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;
 }