Parcourir la source

avoid crash when multiselection nil

Johann il y a 5 ans
Parent
commit
6e84b48284
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      lazpaintcontrols/lcvectororiginal.pas

+ 5 - 0
lazpaintcontrols/lcvectororiginal.pas

@@ -3190,6 +3190,11 @@ begin
       newUnfrozenRangeEnd := idxSelected+1;
     end;
   end else
+  if FMultiselection = nil then
+  begin
+    newUnfrozenRangeStart := 0;
+    newUnfrozenRangeEnd := ShapeCount;
+  end else
   begin
     multiSel := FMultiselection.GetAsMultishape;
     if multiSel.ShapeCount = 0 then