diff --git a/src/generic/richmsgdlgg.cpp b/src/generic/richmsgdlgg.cpp index c656332a68..97882a2579 100644 --- a/src/generic/richmsgdlgg.cpp +++ b/src/generic/richmsgdlgg.cpp @@ -84,7 +84,7 @@ bool wxGenericRichMessageDialog::IsCheckBoxChecked() const { // This function can be called before the dialog is shown and hence before // the check box is created. - return m_checkBox? m_checkBoxValue : m_checkBox->IsChecked(); + return m_checkBox ? m_checkBox->IsChecked() : m_checkBoxValue; } #endif // wxUSE_RICHMSGDLG