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

View File

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