Browse Source

avoid crash if uncomputed scale

Johann ELSASS 4 years ago
parent
commit
a7f924589d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lazpaint/umyslv.pas

+ 1 - 0
lazpaint/umyslv.pas

@@ -1252,6 +1252,7 @@ begin
   else
   else
   begin
   begin
     result := FData[AIndex].displayRect;
     result := FData[AIndex].displayRect;
+    if FScaling <> 0 then
     with result do
     with result do
     begin
     begin
       left := round(left/FScaling);
       left := round(left/FScaling);