From 446a315ba3607833409f4a1db12b42a1f074f986 Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 31 Oct 2005 16:11:39 +0000 Subject: [PATCH] Fix for bug 10417: Sweep doesn't work --- src/VISUGUI/VisuGUI.cxx | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) 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 { -- 2.39.2