diff options
| author | Manolo Gouy <Manolo> | 2017-06-10 06:20:01 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-06-10 06:20:01 +0000 |
| commit | 741c2970fc2de6b08a29b02fb2fa5253d0d92289 (patch) | |
| tree | 93f4b5835097a5fd2c740eaa2f441a086b7ed251 /src/Fl_Screen_Driver.cxx | |
| parent | 8de22cfa4279bdf8e6edf36cf8e570e8e84d2eb3 (diff) | |
Remove warning when compiled with -Wmisleading-indentation
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12256 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Screen_Driver.cxx')
| -rw-r--r-- | src/Fl_Screen_Driver.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Screen_Driver.cxx b/src/Fl_Screen_Driver.cxx index 8de5f606c..4e721d28e 100644 --- a/src/Fl_Screen_Driver.cxx +++ b/src/Fl_Screen_Driver.cxx @@ -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; |
