Hi,

I have another bugfix for the dxf plugin to report.

File dxfEntity.cpp:531

Code:

    VList::iterator itr = nlist.begin();
    Vec3d lastn = (*itr++);
    double bad_c = 0;
    double good_c = 0;
    long bad=0,good=0;
    for (; itr != nlist.end(); ) {
        ++itr;
        if ((*itr)== lastn) continue;
        ...
    }




itr is incremented into the loop and after the test with nlist.end(). The 
unreferencing of itr when nlist is equals to nlist.end() cause an application 
crash.

I suggest to replace the loop by 

Code:

    for (; itr != nlist.end(); ++itr) {
        if ((*itr)== lastn) continue;
        ...
    }




Cheers,
Joachim[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=27089#27089





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to