#31 Updating Data of all pline closed result opened

closed-fixed
nobody
None
5
2012-03-14
2012-02-23
Rocks
No

For my local copy of branche "master", I have release some plugin to modify pline,
but when i updateData all pline closed result opened, so to risolve this problem, I added in file "doc_plugin_interface.cpp" this code:

void Plugin_Entity::updateData(QHash<int, QVariant> *data){

.................
case RS2::EntityPolyline:{
RS_Polyline *pl = static_cast<RS_Polyline*>(entity);
if (hash.take(DPI::CLOSEPOLY).toBool()) {
pl->setClosed(true);
}else{
pl->setClosed(false);
}
break;}
........

}

Discussion

  • Rallaz

    Rallaz - 2012-03-14

    Patch applied in master branch
    Tanks for this patch and... the next ;-)

     
  • Rallaz

    Rallaz - 2012-03-14
    • status: open --> closed-fixed
     

Log in to post a comment.