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:
parent
058e2a7b3b
commit
60dbfddd06
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user