fixed a bug with client rect calculation in the recent separator erasing fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b931f7ee94
commit
bd3d0bb953
@ -1136,8 +1136,6 @@ bool wxToolBar::HandlePaint(WXWPARAM wParam, WXLPARAM lParam)
|
|||||||
// get the control rect in our client coords
|
// get the control rect in our client coords
|
||||||
wxControl *control = tool->GetControl();
|
wxControl *control = tool->GetControl();
|
||||||
wxRect rectCtrl = control->GetRect();
|
wxRect rectCtrl = control->GetRect();
|
||||||
control->ClientToScreen(&rectCtrl.x, &rectCtrl.y);
|
|
||||||
ScreenToClient(&rectCtrl.x, &rectCtrl.y);
|
|
||||||
|
|
||||||
// iterate over all buttons
|
// iterate over all buttons
|
||||||
TBBUTTON tbb;
|
TBBUTTON tbb;
|
||||||
|
Loading…
Reference in New Issue
Block a user