Remove test of always-true condition

This commit is contained in:
Paul Cornett 2019-02-25 23:48:28 -08:00
parent 1e753f97ba
commit fb1a46b933
2 changed files with 2 additions and 2 deletions

View File

@ -376,7 +376,7 @@ wxGLAttributes& wxGLAttributes::Level(int val)
AddAttribute(WGL_NUMBER_OVERLAYS_ARB);
AddAttribute(val);
}
else if ( val < 0 )
else
{
AddAttribute(WGL_NUMBER_UNDERLAYS_ARB);
AddAttribute(-val);

View File

@ -2626,7 +2626,7 @@ bool wxWindowMac::OSXHandleKeyEvent( wxKeyEvent& event )
// moved the ordinary key event sending AFTER the accel evaluation
#if wxUSE_ACCEL
if ( !handled && event.GetEventType() == wxEVT_KEY_DOWN)
if (event.GetEventType() == wxEVT_KEY_DOWN)
{
wxWindow *ancestor = this;
while (ancestor)