diff options
author | lecoanet | 2003-10-03 08:25:30 +0000 |
---|---|---|
committer | lecoanet | 2003-10-03 08:25:30 +0000 |
commit | 28feb2f0bb1b769da852452e40f1799093e8ba2e (patch) | |
tree | 215e8ad5b4cc65cd023ec22488e7aa49ed2785ad | |
parent | a3f8c8cf22a10344864fa34c37ad056f22a97400 (diff) | |
download | tkzinc-28feb2f0bb1b769da852452e40f1799093e8ba2e.zip tkzinc-28feb2f0bb1b769da852452e40f1799093e8ba2e.tar.gz tkzinc-28feb2f0bb1b769da852452e40f1799093e8ba2e.tar.bz2 tkzinc-28feb2f0bb1b769da852452e40f1799093e8ba2e.tar.xz |
Fixed a core in icon Pick method when the image is not specified.
-rw-r--r-- | generic/Icon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/Icon.c b/generic/Icon.c index 678e63f..4503492 100644 --- a/generic/Icon.c +++ b/generic/Icon.c @@ -522,6 +522,9 @@ Pick(ZnItem item, double off_dist = MAX(1, wi->pick_aperture+1); int x, y, width, height; + if (icon->image == ZnUnspecifiedImage) { + return 1.0e40; + } if (wi->render) { ZnPoint p; ZnBBox bbox; |