SetStyle/GetStyle corrections
Added compatibility ctor to wxTextAttrEx wxRichTextCtrl should take a string value for wxTextCtrl compatibility git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1411,7 +1411,7 @@ wxString wxRichTextParagraphLayoutBox::GetText() const
|
||||
/// Get the paragraph by number
|
||||
wxRichTextParagraph* wxRichTextParagraphLayoutBox::GetParagraphAtLine(long paragraphNumber) const
|
||||
{
|
||||
if ((size_t) paragraphNumber <= GetChildCount())
|
||||
if ((size_t) paragraphNumber >= GetChildCount())
|
||||
return NULL;
|
||||
|
||||
return (wxRichTextParagraph*) GetChild((size_t) paragraphNumber);
|
||||
|
Reference in New Issue
Block a user