// RCS-ID: $Id$
// Copyright: (c) 1998 Julian Smart
// (c) 2008 Vadim Zeitlin
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx/wx.h".
// Clean up windows used for displaying the view.
bool DrawingView::OnClose(bool deleteWindow)
{
- if ( !GetDocument()->Close() )
+ if ( !wxView::OnClose(deleteWindow) )
return false;
Activate(false);
bool TextEditView::OnClose(bool deleteWindow)
{
- if ( !GetDocument()->Close() )
+ if ( !wxView::OnClose(deleteWindow) )
return false;
Activate(false);
bool ImageView::OnClose(bool deleteWindow)
{
- if ( !GetDocument()->Close() )
+ if ( !wxView::OnClose(deleteWindow) )
return false;
Activate(false);