]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/docview.cpp
EVT_TEXT_UPDATED bug fixed, text ctrl callbacks simplified
[wxWidgets.git] / src / common / docview.cpp
index 47fc1beea027c5fe807bec6c6b0d14acb25814c2..e1cebc28d18b8eb3ce701088315958f01018dfa2 100644 (file)
@@ -462,9 +462,10 @@ void wxDocument::SetFilename(const wxString& filename, bool notifyViews)
  * Document view
  */
  
-wxView::wxView(wxDocument *doc)
+wxView::wxView()
 {
-  SetDocument(doc);
+//  SetDocument(doc);
+  m_viewDocument = (wxDocument*) NULL;
   
   m_viewTypeName = "";
   m_viewFrame = (wxFrame *) NULL;
@@ -761,10 +762,10 @@ void wxDocManager::OnPrintSetup(wxCommandEvent& WXUNUSED(event))
   if (view)
     parentWin = view->GetFrame();
 
-  wxPrintData data;
+  wxPrintDialogData data;
 
   wxPrintDialog printerDialog(parentWin, & data);
-  printerDialog.GetPrintData().SetSetupDialog(TRUE);
+  printerDialog.GetPrintDialogData().SetSetupDialog(TRUE);
   printerDialog.ShowModal();
 }