]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/prntdlgg.cpp
wxListBox::FindString(): it's not an error if the string is not found, so
[wxWidgets.git] / src / generic / prntdlgg.cpp
index 17c6466ad6b7f79c463e6fc8351a92c3e7859aca..74837533a2df918e6a533becc9192a91a3de9b91 100644 (file)
@@ -235,7 +235,7 @@ bool wxGenericPrintDialog::TransferDataToWindow(void)
          
          sprintf(buf, "%d", printData.GetFromPage());
          fromText->SetValue(buf);
-         sprintf(buf, "%   d", printData.GetFromPage());
+         sprintf(buf, "%d", printData.GetFromPage());
          toText->SetValue(buf);
          
          if (printData.GetAllPages())
@@ -286,7 +286,7 @@ bool wxGenericPrintDialog::TransferDataFromWindow(void)
 
 wxDC *wxGenericPrintDialog::GetPrintDC(void)
 {
-  return new wxPostScriptDC(wxThePrintSetupData->GetPrinterFile(), FALSE, NULL);
+  return new wxPostScriptDC(wxThePrintSetupData->GetPrinterFile(), FALSE, (wxWindow *) NULL);
 }
 
 /*