]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/stc/stctest.cpp
Try harder to set the requester splitter position in wxSplitterWindow.
[wxWidgets.git] / samples / stc / stctest.cpp
index 9b83838205caac8c90b78b392dd5d72fa145d984..93eb644522023e4208b4c4320d8aad4b4ff1facd 100644 (file)
@@ -226,7 +226,6 @@ bool App::OnInit () {
     // open application frame
     m_frame->Layout ();
     m_frame->Show (true);
-    SetTopWindow (m_frame);
 
     return true;
 }
@@ -431,7 +430,7 @@ void AppFrame::OnPrintPreview (wxCommandEvent &WXUNUSED(event)) {
         new wxPrintPreview (new EditPrint (m_edit),
                             new EditPrint (m_edit),
                             &printDialogData);
-    if (!preview->Ok()) {
+    if (!preview->IsOk()) {
         delete preview;
         wxMessageBox (_("There was a problem with previewing.\n\
                          Perhaps your current printer is not correctly?"),