diff options
| author | Simon Wells <swel024@gmail.com> | 2017-11-04 23:51:54 +0000 |
|---|---|---|
| committer | Simon Wells <swel024@gmail.com> | 2017-11-04 23:51:54 +0000 |
| commit | 8d8f6375dcb32493a426ba8901467171fa2627e9 (patch) | |
| tree | 2aa15712ab51716ee18b72aef41f4b00f6d4a93a /src/ui/tools/select-tool.cpp | |
| parent | Added setting to make pkg_config cmake_prefix_path variables (diff) | |
| download | inkscape-8d8f6375dcb32493a426ba8901467171fa2627e9.tar.gz inkscape-8d8f6375dcb32493a426ba8901467171fa2627e9.zip | |
added braces as specified in the coding standard
Diffstat (limited to 'src/ui/tools/select-tool.cpp')
| -rw-r--r-- | src/ui/tools/select-tool.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/tools/select-tool.cpp b/src/ui/tools/select-tool.cpp index 3dfb764bb..2468575c6 100644 --- a/src/ui/tools/select-tool.cpp +++ b/src/ui/tools/select-tool.cpp @@ -397,11 +397,13 @@ void SelectTool::sp_select_context_cycle_through_items(Inkscape::Selection *sele next = std::find( cycling_items.begin(), cycling_items.end(), cycling_cur_item ); g_assert (next != cycling_items.end()); next++; - if (next == cycling_items.end()) - if ( cycling_wrap ) + if (next == cycling_items.end()) { + if ( cycling_wrap ) { next = cycling_items.begin(); - else + } else { next--; + } + } } } else { if (! cycling_cur_item) { |
