Browse Source

reset selected index on clear

circular17 5 years ago
parent
commit
367352180a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lazpaint/umyslv.pas

+ 1 - 0
lazpaint/umyslv.pas

@@ -1145,6 +1145,7 @@ begin
   for I := 0 to ItemCount-1 do
     SetItemImage(I,nil,false);
   FData := nil;
+  FSelectedIndex:= -1;
   if FUpdateCount = 0 then InvalidateView;
 end;