Mercurial > hg > octave-nkf
diff libgui/graphics/ListBoxControl.cc @ 20073:726df008104d
maint: More cleanup of C++ code to follow Octave coding conventions.
* ListBoxControl.cc, graphics.cc, ls-mat5.cc: Break long lines before
comparison ops.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 26 Feb 2015 13:54:11 -0500 |
parents | fe0e34be5576 |
children | 3cc0734283dc |
line wrap: on
line diff
--- a/libgui/graphics/ListBoxControl.cc +++ b/libgui/graphics/ListBoxControl.cc @@ -98,9 +98,8 @@ if (1 <= idx && idx <= lc) { list->item (idx-1)->setSelected (true); - if (i == 0 - && list->selectionMode () == - QAbstractItemView::SingleSelection) + if (i == 0 && (list->selectionMode () + == QAbstractItemView::SingleSelection)) break; } }