compilation fix for Watcom (sorry, Vadim, there's some bug in Watcom C++, it doesn't compile this instance of valid C++ code, producing an obviously incorrect error

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-12-09 02:21:30 +00:00
parent b43a988613
commit 000307d7a8

View File

@ -134,17 +134,18 @@ void wxScrollArrows::DrawArrow(Arrow arrow,
{ wxUP, wxDOWN }
};
void (wxRenderer::*pfn)(wxDC&, wxDirection, const wxRect&, int) =
scrollbarLike ? &wxRenderer::DrawScrollbarArrow
: &wxRenderer::DrawArrow;
(m_control->GetRenderer()->*pfn)
(
if ( scrollbarLike )
m_control->GetRenderer()->DrawScrollbarArrow(
dc,
arrowDirs[m_control->IsVertical()][arrow],
rect,
m_control->GetArrowState(arrow)
);
m_control->GetArrowState(arrow));
else
m_control->GetRenderer()->DrawArrow(
dc,
arrowDirs[m_control->IsVertical()][arrow],
rect,
m_control->GetArrowState(arrow));
}
// ----------------------------------------------------------------------------