0052898: TC 7.7.0: Regression "Glue Faces" dialog glues all faces instead selected faces

This commit is contained in:
vsr 2015-10-06 15:09:51 +03:00
parent 0141ab7c44
commit 1db636b7ff
2 changed files with 4 additions and 4 deletions

View File

@ -144,7 +144,7 @@ namespace GEOM
TPythonDump::operator<< (const std::list<Handle(GEOM_Object)>& theObjects)
{
Standard_Integer aLength = theObjects.size();
if ( aLength > 1 ) {
if ( aLength != 1 ) {
myStream << "[";
}
std::list<Handle(GEOM_Object)>::const_iterator obj = theObjects.begin();
@ -152,7 +152,7 @@ namespace GEOM
*this << *obj;
if ( i < aLength ) myStream << ", ";
}
if ( aLength > 1 ) {
if ( aLength != 1 ) {
myStream << "]";
}
return *this;

View File

@ -615,8 +615,6 @@ bool RepairGUI_GlueDlg::onAcceptLocal()
return false;
}
erasePreview(false);
try {
if (openCommand()) {
SUIT_OverrideCursor wc;
@ -672,6 +670,8 @@ bool RepairGUI_GlueDlg::onAcceptLocal()
abortCommand();
}
erasePreview(false);
updateViewer();
activateSelection();
updateButtonState();