From: Julian Smart Date: Thu, 18 Jun 1998 14:01:07 +0000 (+0000) Subject: Fixed SetSelection, GetSelection for Portrait/Landscape selection X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5bfe9bbc658328942c516f30a454c8a955e1391e Fixed SetSelection, GetSelection for Portrait/Landscape selection git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/postscrp.cpp b/src/common/postscrp.cpp index 9577aae423..d36e6fa015 100644 --- a/src/common/postscrp.cpp +++ b/src/common/postscrp.cpp @@ -2065,7 +2065,7 @@ wxDialog(parent, -1, title, pos, size, style) wxRadioBox *radio0 = new wxRadioBox(this, wxID_PRINTER_ORIENTATION, "Orientation: ", wxPoint(5, yPos), wxSize(-1,-1), 2,orientation,2,0); - radio0->SetSelection((int)wxThePrintSetupData->GetPrinterOrientation()); + radio0->SetSelection((int)wxThePrintSetupData->GetPrinterOrientation() - 1); // @@@ Configuration hook if (wxThePrintSetupData->GetPrintPreviewCommand() == NULL) @@ -2144,7 +2144,7 @@ int wxPostScriptPrintDialog::ShowModal (void) wxThePrintSetupData->SetPrinterCommand(WXSTRINGCAST text_prt->GetValue ()); #endif - wxThePrintSetupData->SetPrinterOrientation((radio0->GetSelection() == PS_LANDSCAPE ? PS_LANDSCAPE : PS_PORTRAIT)); + wxThePrintSetupData->SetPrinterOrientation((radio0->GetSelection() == 1 ? PS_LANDSCAPE : PS_PORTRAIT)); // C++ wants this switch ( radio1->GetSelection() ) {