소스 검색

* patch by Werner Pamler: Typo in TFPCustomCanvas.Draw, resolves #40176

florian 2 년 전
부모
커밋
d8d6a9c5a6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/fcl-image/src/fpcanvas.inc

+ 1 - 1
packages/fcl-image/src/fpcanvas.inc

@@ -786,7 +786,7 @@ begin
   if xm >= width then
     xm := width - 1;
   ym := y + image.height-1;
-  if (ym<0) or (y>width) then exit;
+  if (ym<0) or (y>height) then exit;
   if ym >= height then
     ym := height - 1;
   xi := x;