msvc_fix.patch 632 B

123456789101112131415
  1. diff -r e82d852e4fb0 lib/intersect_face_division.cpp
  2. --- a/lib/intersect_face_division.cpp Wed Jan 15 13:16:14 2014 +1100
  3. +++ b/lib/intersect_face_division.cpp Wed Mar 12 23:09:19 2014 +0600
  4. @@ -1121,7 +1121,9 @@
  5. }
  6. // copy up to the end of the path.
  7. - std::copy(base_loop.begin() + pos, base_loop.begin() + e1_1, std::back_inserter(out));
  8. + if (pos < e1_1) {
  9. + std::copy(base_loop.begin() + pos, base_loop.begin() + e1_1, std::back_inserter(out));
  10. + }
  11. CARVE_ASSERT(base_loop[e1_1] == p1.back());
  12. std::copy(p1.rbegin(), p1.rend() - 1, std::back_inserter(out));