From: jfa Date: Mon, 31 Oct 2005 16:11:39 +0000 (+0000) Subject: Fix for bug 10417: Sweep doesn't work X-Git-Tag: V2_2_6~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=446a315ba3607833409f4a1db12b42a1f074f986;p=modules%2Fvisu.git Fix for bug 10417: Sweep doesn't work --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index cacfe290..cf12d605 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -2420,20 +2420,20 @@ void VisuGUI::Sweep() { } QApplication::setOverrideCursor( Qt::waitCursor ); - try{ - for (int j=0 ; jSetMapScale(aPercents); aPrsObject->UpdateActor(aActor); vf->getRW()->getRenderWindow()->Render(); usleep(aTemp); + } catch (std::exception& exc) { + INFOS("Follow exception was occured :\n" << exc.what()); + } catch (...) { + INFOS("Unknown exception was occured!"); } } - }catch(std::exception& exc){ - INFOS("Follow exception was occured :\n"<GetParent(); - thePrs->UpdateActor(aResActor); - aResActor->VisibilityOn(); - + try { + thePrs->UpdateActor(aResActor); + aResActor->VisibilityOn(); + } catch (std::runtime_error& ex) { + aResActor->VisibilityOff(); + INFOS(ex.what()); + QAD_MessageBox::warn1(QAD_Application::getDesktop(), tr("VISU_WARNING"), + tr("ERR_CANT_CREATE_ACTOR") + ": " + tr(ex.what()), + tr("VISU_BUT_OK")); + } } else if (theDispOnly) { anVISUActor->GetParent()->VisibilityOff(); } else {