X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/345c78ca5fa57ea6c7dc7e6a05496a8e82aa2b50..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/richtext/richtextstylepage.cpp?ds=inline diff --git a/src/richtext/richtextstylepage.cpp b/src/richtext/richtextstylepage.cpp index bb646168a3..372ef36040 100644 --- a/src/richtext/richtextstylepage.cpp +++ b/src/richtext/richtextstylepage.cpp @@ -158,7 +158,7 @@ bool wxRichTextStylePage::TransferDataFromWindow() bool wxRichTextStylePage::TransferDataToWindow() { wxPanel::TransferDataToWindow(); - + wxRichTextStyleDefinition* def = wxRichTextFormattingDialog::GetDialogStyleDefinition(this); if (def) { @@ -310,7 +310,7 @@ wxIcon wxRichTextStylePage::GetIconResource( const wxString& name ) void wxRichTextStylePage::OnNextStyleUpdate( wxUpdateUIEvent& event ) { wxRichTextStyleDefinition* def = wxRichTextFormattingDialog::GetDialogStyleDefinition(this); - event.Enable(wxDynamicCast(def, wxRichTextParagraphStyleDefinition)); + event.Enable(wxDynamicCast(def, wxRichTextParagraphStyleDefinition) != NULL); } #endif // wxUSE_RICHTEXT