소스 검색

undefined results

circular17 6 년 전
부모
커밋
37174bcfa8
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      lazpaintcontrols/lcvectororiginal.pas
  2. 1 1
      lazpaintcontrols/lcvectorpolyshapes.pas

+ 1 - 0
lazpaintcontrols/lcvectororiginal.pas

@@ -2503,6 +2503,7 @@ begin
   idx := FShapes.IndexOf(AShape);
   if idx = -1 then exit(false);
   DeleteShapeRange(idx, 1);
+  result := true;
 end;
 
 procedure TVectorOriginal.DeleteShape(AIndex: integer);

+ 1 - 1
lazpaintcontrols/lcvectorpolyshapes.pas

@@ -1055,7 +1055,7 @@ function TPolylineShape.PointInShape(APoint: TPointF): boolean;
 var
   pts: ArrayOfTPointF;
 begin
-  if not BackVisible and not PenVisible then exit;
+  if not BackVisible and not PenVisible then exit(false);
   pts := GetCurve(AffineMatrixIdentity);
   if BackVisible and IsPointInPolygon(pts, APoint, true) then exit(true);
   if PenVisible then