X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..f44fdfb032152a62cc0e3a4c0f09330cfab76710:/src/html/htmprint.cpp diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp index 82f3e09fce..df55a076eb 100644 --- a/src/html/htmprint.cpp +++ b/src/html/htmprint.cpp @@ -485,16 +485,14 @@ bool wxHtmlEasyPrinting::DoPreview(wxHtmlPrintout *printout1, wxHtmlPrintout *pr delete preview; return FALSE; } - - else { - wxPreviewFrame *frame = new wxPreviewFrame(preview, m_Frame, - m_Name + _(" Preview"), - wxPoint(100, 100), wxSize(650, 500)); - frame -> Centre(wxBOTH); - frame -> Initialize(); - frame -> Show(TRUE); - return TRUE; - } + + wxPreviewFrame *frame = new wxPreviewFrame(preview, m_Frame, + m_Name + _(" Preview"), + wxPoint(100, 100), wxSize(650, 500)); + frame -> Centre(wxBOTH); + frame -> Initialize(); + frame -> Show(TRUE); + return TRUE; } @@ -508,11 +506,9 @@ bool wxHtmlEasyPrinting::DoPrint(wxHtmlPrintout *printout) { return FALSE; } - else - { - (*m_PrintData) = printer.GetPrintDialogData().GetPrintData(); - return TRUE; - } + + (*m_PrintData) = printer.GetPrintDialogData().GetPrintData(); + return TRUE; }