]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxprop/src/propform.cpp
Added test for sprintf and vsnprintf to fix string.cpp for non-GNU systems.
[wxWidgets.git] / utils / wxprop / src / propform.cpp
index d05b3f15be1da7028f0dbfbf4685678f0f8049f2..8dd42a4ef422c841f1aa5baab74404d231093bbd 100644 (file)
 #include <math.h>
 #include <string.h>
 
+#if wxUSE_IOSTREAMH
 #if defined(__WXMSW__) && !defined(__GNUWIN32__)
 #include <strstrea.h>
 #else
 #include <strstream.h>
 #endif
+#else
+#include <strstream>
+#endif
 
 #include "wx/window.h"
 #include "wx/utils.h"
@@ -183,6 +187,7 @@ void wxPropertyFormView::OnOk(wxCommandEvent& WXUNUSED(event))
     return;
   
   sm_dialogCancelled = FALSE;
+  TransferToPropertySheet();
 
   m_managedWindow->Close(TRUE);
 }
@@ -200,7 +205,8 @@ void wxPropertyFormView::OnHelp(wxCommandEvent& WXUNUSED(event))
 
 void wxPropertyFormView::OnUpdate(wxCommandEvent& WXUNUSED(event))
 {
-  TransferToPropertySheet();
+    if (Check())
+        TransferToPropertySheet();
 }
 
 void wxPropertyFormView::OnRevert(wxCommandEvent& WXUNUSED(event))