Exception in Check

This commit is contained in:
skv 2014-01-28 09:15:19 +00:00
parent de29e543b9
commit 2796ee3c59

View File

@ -360,6 +360,9 @@ void MeasureGUI_CheckCompoundOfBlocksDlg::onErrorsListSelectionChanged()
return; return;
} }
myGrp->ListBox2->clear();
if (aCurItem < aErrs.length()) {
GEOM::GEOM_IBlocksOperations::BCError aErr = aErrs[aCurItem]; GEOM::GEOM_IBlocksOperations::BCError aErr = aErrs[aCurItem];
GEOM::ListOfLong aObjLst = aErr.incriminated; GEOM::ListOfLong aObjLst = aErr.incriminated;
QStringList aSubShapeList; QStringList aSubShapeList;
@ -374,9 +377,9 @@ void MeasureGUI_CheckCompoundOfBlocksDlg::onErrorsListSelectionChanged()
aSubShapeList.append( QString( "%1_%2" ).arg( aType ).arg( aObjLst[i] ) ); aSubShapeList.append( QString( "%1_%2" ).arg( aType ).arg( aObjLst[i] ) );
} }
} }
myGrp->ListBox2->clear();
myGrp->ListBox2->addItems( aSubShapeList ); myGrp->ListBox2->addItems( aSubShapeList );
} }
}
//================================================================================= //=================================================================================
// function : onSubShapesListSelectionChanged // function : onSubShapesListSelectionChanged