Merge lp:~macslow/unity/unity-4.0.fix-834630 into lp:unity/4.0
Proposed by
Mirco Müller
Status: | Merged |
---|---|
Approved by: | Gord Allott |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1719 |
Proposed branch: | lp:~macslow/unity/unity-4.0.fix-834630 |
Merge into: | lp:unity/4.0 |
Diff against target: |
13 lines (+3/-0) 1 file modified
plugins/unityshell/src/SwitcherModel.cpp (+3/-0) |
To merge this branch: | bzr merge lp:~macslow/unity/unity-4.0.fix-834630 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Penhey (community) | Approve | ||
Review via email: mp+80471@code.launchpad.net |
Description of the change
Add an out-of-bounds check to the DetailXids vector. Fixes LP: #834630
To post a comment you must log in.
I think it would be slightly clearer with: selection_ index >= DetailXids( ).size( )) selection_ index > DetailXids().size() - 1)
if (detail_
rather than:
if (detail_
as normally when looping you have
while (index < size)
and the opposite of < is >=
What do you think?