Re: canvas overlapping bug?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: canvas overlapping bug?

From: Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Date: Thu Dec 01 2005 - 10:52:19 CET

Aleks <vuje@ifg.uni-hannover.de> wrote:
> I've noticed following behaviour with canvas overlapping which is at
> least unexpected to me.
> .c create oval 100 100 100 100 -outline red

oh boy, why create an oval item, when you need a single point? ;-)

Usually, ovals don't include the corner points used to place them.
a 1-sized oval could be expected to be one pixel on the canvas,
but it isn't. Actually it is drawn as 4 pixels, but what its
actual size is, can only be found by trial&error

% .c find overlapping 100.5 100 100.5 100
% .c find overlapping 100 100.5 10 100.5
both find the oval!

strangely, some other coordinates that I thought
would have to ly on the oval didn't, not even
when I used a filled oval.

I can't tell if this can be seen as a bug or not.
Received on Sat Dec 3 03:28:33 2005