From: <jam...@us...> - 2007-03-28 23:28:31
|
Revision: 28 http://svn.sourceforge.net/nplot/?rev=28&view=rev Author: jamcquay Date: 2007-03-28 16:28:32 -0700 (Wed, 28 Mar 2007) Log Message: ----------- Fixed [SF bug 1671259] Fixed for version 0.9.10.1 Wrong index was being used when updating drawables, only the first in the list was being updated. Solution posted within the bug report by randalx Signed off by: jamcquay Modified Paths: -------------- trunk/src/PlotSurface2D.cs Modified: trunk/src/PlotSurface2D.cs =================================================================== --- trunk/src/PlotSurface2D.cs 2007-02-20 20:19:52 UTC (rev 27) +++ trunk/src/PlotSurface2D.cs 2007-03-28 23:28:32 UTC (rev 28) @@ -610,14 +610,13 @@ for (int i = position; i < drawables_.Count; ++i) { - // only update axes if this drawable is an IPlot. - if (!(drawables_[position] is IPlot)) + if (!(drawables_[i] is IPlot)) continue; - IPlot p = (IPlot)drawables_[position]; - XAxisPosition xap = (XAxisPosition)xAxisPositions_[position]; - YAxisPosition yap = (YAxisPosition)yAxisPositions_[position]; + IPlot p = (IPlot)drawables_[i]; + XAxisPosition xap = (XAxisPosition)xAxisPositions_[i]; + YAxisPosition yap = (YAxisPosition)yAxisPositions_[i]; if (xap == XAxisPosition.Bottom) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |