diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-05-20 15:25:00 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-05-20 15:25:37 +0200 |
commit | c53812a1b7c45b1b5a4a341b178c40602c7dcbf7 (patch) | |
tree | c9d6a029aa5f4e6081be0aadb2ee2a11e68aa285 /cui | |
parent | b8c046acfc235cbfb09d598b502a66922045cabc (diff) |
Some cppcheck cleaning
Change-Id: Ic30cdeffabec1eb1a6c153ac450a3d28064ef534
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optcolor.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx index c42ba08a38f9..25b6596817f1 100644 --- a/cui/source/options/optcolor.cxx +++ b/cui/source/options/optcolor.cxx @@ -1327,8 +1327,7 @@ IMPL_LINK(ColorConfigCtrl_Impl, ScrollHdl, ScrollBar*, pScrollBar) { nLastVisible++; //skip gaps where no controls exist for the related ColorConfigEntry - while(!aScrollWindow.aCheckBoxes[nLastVisible] && !aScrollWindow.aColorBoxes[nLastVisible] && - nLastVisible < nCount - 1 ) + while((nLastVisible < (nCount - 1)) && !aScrollWindow.aCheckBoxes[nLastVisible] && !aScrollWindow.aColorBoxes[nLastVisible]) nLastVisible++; if ( nLastVisible < nCount ) { |