Skip to content

Commit 1850554

Browse files
cjmayojtsiomb
authored andcommitted
Fix SPNAV_EVENT_MOTION comparison with maxval
1 parent 7518e83 commit 1850554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ void MainWin::spnav_input()
325325
switch(ev.type) {
326326
case SPNAV_EVENT_MOTION:
327327
for(int i=0; i<6; i++) {
328-
if(abs(ev.motion.data[i] > maxval)) maxval = abs(ev.motion.data[i]);
328+
if(abs(ev.motion.data[i]) > maxval) maxval = abs(ev.motion.data[i]);
329329
}
330330
for(int i=0; i<6; i++) {
331331
prog_axis[i]->setMinimum(-maxval);

0 commit comments

Comments
 (0)