diff --git a/src/osgPlugins/dxf/dxfEntity.cpp b/src/osgPlugins/dxf/dxfEntity.cpp index a5fb2ef2f..e1bd1d3a8 100644 --- a/src/osgPlugins/dxf/dxfEntity.cpp +++ b/src/osgPlugins/dxf/dxfEntity.cpp @@ -594,8 +594,7 @@ dxfPolyline::drawScene(scene* sc) double bad_c = 0; double good_c = 0; long bad=0,good=0; - for (; itr != nlist.end(); ) { - ++itr; + for (; itr != nlist.end(); ++itr) { if ((*itr)== lastn) continue; Vec3d diff = ((*itr)-lastn); diff.normalize();