Skip to content

Commit 7df70c7

Browse files
committed
BrushStoreWindow: fix broken check for duplicate brushes
- break statement was erroneously moved during The Big Cleanup, and it allowed duplicate brushes to be added to Brush window.
1 parent 31949a9 commit 7df70c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

artpaint/windows/BrushStoreWindow.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,8 @@ BrushStoreView::AddBrush(Brush* brush)
493493
brush_info item = *(brush_info*)brush_data->ItemAt(i);
494494
if (Brush::compare_brushes(item, new_brush_info) == true) {
495495
index = i;
496-
} break;
496+
break;
497+
}
497498
}
498499

499500
if (index < 0) {

0 commit comments

Comments
 (0)