]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/propgridiface.cpp
Applied #9789: missing wxBORDER_THEME style in XRC
[wxWidgets.git] / src / propgrid / propgridiface.cpp
index 88e51c6db28ce11fede7770ed3c1346844c9050d..1984ce6bb40d37243fbaa139a8e25ada3d080a20 100644 (file)
@@ -217,7 +217,9 @@ wxPGProperty* wxPropertyGridInterface::GetSelection() const
 bool wxPropertyGridInterface::ClearSelection( bool validation )
 {
     bool res = DoClearSelection(validation, wxPG_SEL_DONT_SEND_EVENT);
-    GetPropertyGrid()->Refresh();
+    wxPropertyGrid* pg = GetPropertyGrid();
+    if ( pg )
+        pg->Refresh();
     return res;
 }