Cppcheck: Fixed 2 issues introduced with merge of lockable colour picker

This commit is contained in:
heckflosse
2016-10-10 16:28:44 +02:00
parent c7cf196ae1
commit 0821eea7b6
3 changed files with 5 additions and 5 deletions

View File

@@ -567,7 +567,7 @@ void CropWindow::buttonPress (int button, int type, int bstate, int x, int y)
}
} else if (!(bstate & GDK_CONTROL_MASK) && !(bstate & GDK_SHIFT_MASK)) {
// Deleting the hovered picker
for (std::vector<LockableColorPicker*>::iterator i = colorPickers.begin(); i != colorPickers.end(); i++) {
for (std::vector<LockableColorPicker*>::iterator i = colorPickers.begin(); i != colorPickers.end(); ++i) {
if (*i == hoveredPicker) {
colorPickers.erase(i);
delete hoveredPicker;