summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2024-06-08 08:37:20 (GMT)
committerfvogel <fvogelnew1@free.fr>2024-06-08 08:37:20 (GMT)
commit9e67b3bff485409680adc5c89f47fe54adcc457b (patch)
tree735cc5af7996ae4c466d684c0e0aad5c955217e9
parentdd00d32a89426c4c9b36774dec3dbe026c069158 (diff)
downloadtk-9e67b3bff485409680adc5c89f47fe54adcc457b.zip
tk-9e67b3bff485409680adc5c89f47fe54adcc457b.tar.gz
tk-9e67b3bff485409680adc5c89f47fe54adcc457b.tar.bz2
Fix [a0241c0e25]: photo image copy command can unexpectedly hang for 20+ seconds.
-rw-r--r--generic/tkImgPhoto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c
index cadbb2d..9c5f91c 100644
--- a/generic/tkImgPhoto.c
+++ b/generic/tkImgPhoto.c
@@ -3173,7 +3173,7 @@ Tk_PhotoPutZoomedBlock(
* Zero-sized blocks never cause any changes. [Bug 3078902]
*/
- if (blockPtr->height == 0 || blockPtr->width == 0) {
+ if (blockPtr->height <= 0 || blockPtr->width <= 0) {
return TCL_OK;
}