head 1.2; access; symbols pkgsrc-2014Q2:1.1.0.4 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.2 pkgsrc-2014Q1-base:1.1; locks; strict; comment @// @; 1.2 date 2014.07.29.07.03.27; author adam; state dead; branches; next 1.1; commitid AhB1pIUYhFmK2fKx; 1.1 date 2014.01.11.17.48.52; author wiz; state Exp; branches; next ; commitid Us6vc9wLthYJ0Jkx; desc @@ 1.2 log @Changes 0.48.5: Adobe Illustrator SVG files containing entities can be loaded again Support for Poppler 0.26 Support for Boehm-GC 7.4.0 and later Several crash bugs were fixed 64-bit compilation is now possible on Windows @ text @$NetBSD: patch-src_sp-item-rm-unsatisfied-cns.cpp,v 1.1 2014/01/11 17:48:52 wiz Exp $ Fix compilation with clang/libc++. --- src/sp-item-rm-unsatisfied-cns.cpp.orig 2011-07-08 18:25:09.000000000 +0000 +++ src/sp-item-rm-unsatisfied-cns.cpp @@@@ -23,9 +23,9 @@@@ void sp_item_rm_unsatisfied_cns(SPItem & g_assert( snappoint_ix < int(snappoints.size()) ); if (!approx_equal( sp_guide_distance_from_pt(cn.g, snappoints[snappoint_ix].getPoint()), 0) ) { remove_last(cn.g->attached_items, SPGuideAttachment(&item, cn.snappoint_ix)); + g_assert( i < item.constraints.size() ); - vector::iterator const ei(&item.constraints[i]); - item.constraints.erase(ei); + item.constraints.erase(item.constraints.begin() + i); } } } @ 1.1 log @Fix build with clang. XXX: Haven't tested with gcc, let me know if it breaks (will watch bulk builds). @ text @d1 1 a1 1 $NetBSD$ @