git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66420
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
dc.SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT);
}
dc.SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT);
}
+ wxCoord x_orig = GetParent()->GetPosition().x;
while (hasTabs)
{
// the string has a tab
while (hasTabs)
{
// the string has a tab
wxRichTextParagraph* para = wxDynamicCast(GetParent(), wxRichTextParagraph);
wxASSERT (para != NULL);
wxRichTextParagraph* para = wxDynamicCast(GetParent(), wxRichTextParagraph);
wxASSERT (para != NULL);
+ int relativeX = position.x - GetParent()->GetPosition().x;
wxRichTextAttr textAttr(para ? para->GetCombinedAttributes(GetAttributes()) : GetAttributes());
wxRichTextAttr textAttr(para ? para->GetCombinedAttributes(GetAttributes()) : GetAttributes());
partialExtents->Add(oldWidth + p[j]);
if (partialExtents->GetCount() > 0)
partialExtents->Add(oldWidth + p[j]);
if (partialExtents->GetCount() > 0)
- absoluteWidth = (*partialExtents)[(*partialExtents).GetCount()-1] + position.x;
+ absoluteWidth = (*partialExtents)[(*partialExtents).GetCount()-1] + relativeX;
- absoluteWidth = position.x;
+ absoluteWidth = relativeX;
- width = nextTabPos - position.x;
+ width = nextTabPos - relativeX;
if (partialExtents)
partialExtents->Add(width);
if (partialExtents)
partialExtents->Add(width);