Browse Source

use ternary operator

pull/263/head
Martin Bångens 4 years ago
parent
commit
5f41b12e96
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      dgl/src/ImageWidgets.cpp

+ 1
- 3
dgl/src/ImageWidgets.cpp View File

@@ -522,9 +522,7 @@ bool ImageKnob::onMouse(const MouseEvent& ev)
if (ev.button > 3 || ev.button < 1)
return false;

if (ev.button == 3)
fRightClicked = true;
else fRightClicked = false;
fRightClicked = (ev.button == 3) ? true : false;

if (ev.press)
{


Loading…
Cancel
Save