You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Urs Reupke <ur...@gmx.net> on 2006/01/31 07:36:26 UTC
AbstractImageZoomInteractor
Hello,
it seems to me that there is a small mistake in the
AbstractImageZoomInteractor class:
The value dy is calculated, then modified to guarantee for a minimum
value of |dy|>15.
There are two cases to this, dy less than 0 or dy greater than 0,
however, in the former case dy is set to 15 instead of -15 if dy>-5 (and
of course dy < 0.
To sum things up: I believe line 117 should read
dy = (dy > -5) ? -15 : dy - 10;
instead of
dy = (dy > -5) ? 15 : dy - 10;
Regards
-Urs
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org