From: <jam...@us...> - 2009-12-18 22:38:29
|
Revision: 33 http://nplot.svn.sourceforge.net/nplot/?rev=33&view=rev Author: jamcquay Date: 2009-12-18 22:38:20 +0000 (Fri, 18 Dec 2009) Log Message: ----------- Fixed [SF bug 1630597] Fixed for version 0.9.10.1 Zoom interaction was crashing when zooming in multiple times... Now checking if the graphics extends before allowing the update Fix coded by: jamcquay Signed off by: jamcquay Modified Paths: -------------- trunk/src/LinePlot.cs Modified: trunk/src/LinePlot.cs =================================================================== --- trunk/src/LinePlot.cs 2009-03-23 13:03:09 UTC (rev 32) +++ trunk/src/LinePlot.cs 2009-12-18 22:38:20 UTC (rev 33) @@ -178,7 +178,11 @@ } else { - g.DrawLine( Pen, p1.X, p1.Y, p2.X, p2.Y ); + // Ensure that we do not go outside of the graphics capabilities + if ((Math.Abs(p1.X) + Math.Abs(p2.X)) < 0x4000007F && (Math.Abs(p1.Y) + Math.Abs(p2.Y)) < 0x4000007F) + { + g.DrawLine(Pen, p1.X, p1.Y, p2.X, p2.Y); + } } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |