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:
Julian Smart
2006-07-03 21:13:18 +00:00
parent 27b12131a6
commit 27e20452c4
5 changed files with 60 additions and 7 deletions

View File

@@ -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);