Remove warning when compiled with -Wmisleading-indentation

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12256 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2017-06-10 06:20:01 +00:00
parent 8de22cfa42
commit 741c2970fc

View File

@ -468,7 +468,8 @@ int Fl_Screen_Driver::scale_handler(int event)
}
}
if (key == '-') i--; else i++;
if (i < 0) i = 0; if (i >= count) i = count - 1;
if (i < 0) i = 0;
else if (i >= count) i = count - 1;
f = scaling_values[i];
}
if (f == old_f) return 1;