X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/603f702b4a0e19ffa27cffc52872efaac1aa8c54..c37b0f0907b07878551a00165b0ad323bd2ccdaf:/src/richtext/richtextstylepage.cpp diff --git a/src/richtext/richtextstylepage.cpp b/src/richtext/richtextstylepage.cpp index 7dedcd1783..9f15d3c8fc 100644 --- a/src/richtext/richtextstylepage.cpp +++ b/src/richtext/richtextstylepage.cpp @@ -4,7 +4,6 @@ // Author: Julian Smart // Modified by: // Created: 10/5/2006 11:34:55 AM -// RCS-ID: $Id$ // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -158,7 +157,7 @@ bool wxRichTextStylePage::TransferDataFromWindow() bool wxRichTextStylePage::TransferDataToWindow() { wxPanel::TransferDataToWindow(); - + wxRichTextStyleDefinition* def = wxRichTextFormattingDialog::GetDialogStyleDefinition(this); if (def) { @@ -310,7 +309,7 @@ wxIcon wxRichTextStylePage::GetIconResource( const wxString& name ) void wxRichTextStylePage::OnNextStyleUpdate( wxUpdateUIEvent& event ) { wxRichTextStyleDefinition* def = wxRichTextFormattingDialog::GetDialogStyleDefinition(this); - event.Enable(def->IsKindOf(CLASSINFO(wxRichTextParagraphStyleDefinition))); + event.Enable(wxDynamicCast(def, wxRichTextParagraphStyleDefinition) != NULL); } #endif // wxUSE_RICHTEXT