Correct GetLabelItemRect to not include image (as per 2.8 branch)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2463,9 +2463,9 @@ wxRect wxListMainWindow::GetLineLabelRect(size_t line) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxRect rect;
|
wxRect rect;
|
||||||
rect.x = HEADER_OFFSET_X;
|
rect.x = image_x + HEADER_OFFSET_X;
|
||||||
rect.y = GetLineY(line);
|
rect.y = GetLineY(line);
|
||||||
rect.width = GetColumnWidth(0);
|
rect.width = GetColumnWidth(0) - image_x;
|
||||||
rect.height = GetLineHeight();
|
rect.height = GetLineHeight();
|
||||||
|
|
||||||
return rect;
|
return rect;
|
||||||
|
Reference in New Issue
Block a user