소스 검색

- Ifc: fix another indexing error.

acgessler 12 년 전
부모
커밋
470f4f3757
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      code/IFCGeometry.cpp

+ 1 - 1
code/IFCGeometry.cpp

@@ -1577,7 +1577,7 @@ void FindBorderContours(ContourVector::iterator current)
 	if (outer_border && start_on_outer_border) {
 	if (outer_border && start_on_outer_border) {
 		const IfcVector2& proj_point = *cbegin;
 		const IfcVector2& proj_point = *cbegin;
 		if (fabs((proj_point.x - last_proj_point.x) * (proj_point.y - last_proj_point.y)) < dot_point_epsilon) {
 		if (fabs((proj_point.x - last_proj_point.x) * (proj_point.y - last_proj_point.y)) < dot_point_epsilon) {
-			skiplist[0] = true;
+			skiplist[skiplist.size()-1] = true;
 		}
 		}
 	}
 	}
 }
 }