From: <coe...@us...> - 2012-10-16 08:37:43
|
Revision: 427 http://mevislabmodules.svn.sourceforge.net/mevislabmodules/?rev=427&view=rev Author: coertmetz Date: 2012-10-16 08:37:32 +0000 (Tue, 16 Oct 2012) Log Message: ----------- CM: Fixed a bug causing a crash with empty CSO lists. Modified Paths: -------------- trunk/Community/General/Sources/ML/MLCSOCommunityModules/CSOPointsToXMarkers/mlCSOPointsToXMarkers.cpp Modified: trunk/Community/General/Sources/ML/MLCSOCommunityModules/CSOPointsToXMarkers/mlCSOPointsToXMarkers.cpp =================================================================== --- trunk/Community/General/Sources/ML/MLCSOCommunityModules/CSOPointsToXMarkers/mlCSOPointsToXMarkers.cpp 2012-09-27 09:33:59 UTC (rev 426) +++ trunk/Community/General/Sources/ML/MLCSOCommunityModules/CSOPointsToXMarkers/mlCSOPointsToXMarkers.cpp 2012-10-16 08:37:32 UTC (rev 427) @@ -195,7 +195,7 @@ for (unsigned int k=0; k<numOfPathPoints; k++) { vec3 posPathPoint = pathList->getPosAt(k); - if (points.back()!=posPathPoint) points.push_back(posPathPoint); + if (points.size() == 0 || points.back()!=posPathPoint) points.push_back(posPathPoint); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |