1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

Get rid of VC++ compiler warning about performance. Was forcing int to bool.

This commit is contained in:
v.audacity 2010-06-30 22:10:51 +00:00
parent 058e2a7b3b
commit 60dbfddd06

View File

@ -1585,7 +1585,7 @@ bool LabelTrack::CaptureKey(wxKeyEvent & event)
int keyCode = event.GetKeyCode();
// Check for modifiers -- this does what wxKeyEvent::HasModifiers() should
// do (it checks Control instead of CMD on Mac)
bool hasMods = event.GetModifiers() & (wxMOD_CMD | wxMOD_ALT);
bool hasMods = ((event.GetModifiers() & (wxMOD_CMD | wxMOD_ALT)) != 0);
if (mSelIndex >= 0) {
if (IsGoodLabelEditKey(keyCode) && !hasMods) {