Patch from Bruno Daniel to fix tab position inconsistency
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9581362b15
commit
015d04462f
@ -4794,6 +4794,7 @@ bool wxRichTextPlainText::DrawTabbedString(wxDC& dc, const wxTextAttr& attr, con
|
|||||||
dc.SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT);
|
dc.SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxCoord x_orig = x;
|
||||||
while (hasTabs)
|
while (hasTabs)
|
||||||
{
|
{
|
||||||
// the string has a tab
|
// the string has a tab
|
||||||
@ -4805,7 +4806,7 @@ bool wxRichTextPlainText::DrawTabbedString(wxDC& dc, const wxTextAttr& attr, con
|
|||||||
bool not_found = true;
|
bool not_found = true;
|
||||||
for (int i = 0; i < tabCount && not_found; ++i)
|
for (int i = 0; i < tabCount && not_found; ++i)
|
||||||
{
|
{
|
||||||
nextTabPos = tabArray.Item(i);
|
nextTabPos = tabArray.Item(i) + x_orig;
|
||||||
|
|
||||||
// Find the next tab position.
|
// Find the next tab position.
|
||||||
// Even if we're at the end of the tab array, we must still draw the chunk.
|
// Even if we're at the end of the tab array, we must still draw the chunk.
|
||||||
|
Loading…
Reference in New Issue
Block a user