]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't return NULL widget from wxFileCtrl page of widgets sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 4 May 2012 22:20:59 +0000 (22:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 4 May 2012 22:20:59 +0000 (22:20 +0000)
This makes all the common operations such as setting tooltip, colours &c on
this page simply crash.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/widgets/filectrl.cpp

index 2c4f633259eee95f273ba18692596635cae5a333..09affc6cfa6b3a7c82ca81950771ce697d6f5573 100644 (file)
@@ -71,7 +71,7 @@ public:
     FileCtrlWidgetsPage( WidgetsBookCtrl *book, wxImageList *imaglist );
     virtual ~FileCtrlWidgetsPage() {}
 
     FileCtrlWidgetsPage( WidgetsBookCtrl *book, wxImageList *imaglist );
     virtual ~FileCtrlWidgetsPage() {}
 
-    virtual wxControl *GetWidget() const { return /*m_fileCtrl*/NULL; }
+    virtual wxControl *GetWidget() const { return m_fileCtrl; }
     virtual void RecreateWidget() { CreateFileCtrl(); }
 
     // lazy creation of the content
     virtual void RecreateWidget() { CreateFileCtrl(); }
 
     // lazy creation of the content