Don't insert a newline when we get text

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2007-06-07 12:49:35 +00:00
parent d9605e634b
commit 1a75935d3f
2 changed files with 14 additions and 25 deletions

View File

@@ -1429,8 +1429,6 @@ wxString wxRichTextParagraphLayoutBox::GetTextForRange(const wxRichTextRange& ra
wxRichTextObject* child = node->GetData();
if (!child->GetRange().IsOutside(range))
{
// if (lineCount > 0)
// text += wxT("\n");
wxRichTextRange childRange = range;
childRange.LimitTo(child->GetRange());
@@ -1438,7 +1436,7 @@ wxString wxRichTextParagraphLayoutBox::GetTextForRange(const wxRichTextRange& ra
text += childText;
if (childRange.GetEnd() == child->GetRange().GetEnd())
if ((childRange.GetEnd() == child->GetRange().GetEnd()) && node->GetNext())
text += wxT("\n");
lineCount ++;