CVS: [VZ] wxWindows/src/msw notebook.cpp,1.185,1.186

ABX abx at abx.art.pl
Mon Oct 9 02:26:01 PDT 2006


anonymous at sunsite.dk:
> +void wxNotebook::UpdateSelection(size_t newsel)
> +{
> +    if ( m_nSelection != -1 )
> +        m_pages[m_nSelection]->Show(false);
> +
> +    if ( newsel != -1 )

'newsel' is size_t which is rather expected to be unsigned. So

    newsel != -1

comparison looks strange.

ABX




More information about the wx-dev mailing list