Fixed bad rendering with tabs by correcting the position tabs are calculated from

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@66421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2010-12-21 11:12:06 +00:00
parent a7cb6034ff
commit 0d7f162955

View File

@@ -5330,7 +5330,7 @@ bool wxRichTextPlainText::DrawTabbedString(wxDC& dc, const wxTextAttrEx& attr, c
dc.SetBackgroundMode(wxTRANSPARENT);
}
wxCoord x_orig = x;
wxCoord x_orig = GetParent()->GetPosition().x;
while (hasTabs)
{
// the string has a tab