#include "VisuGUI.h"
#include "VisuGUI_Tools.h"
+#include "VisuGUI_ViewTools.h"
#include "VISU_ColoredPrs3d_i.hh"
#include "VISU_Actor.h"
connect( myViewWindow, SIGNAL( destroyed( QObject * ) ), this, SLOT( onSelectionChanged() ) );
}
+ if(!VISU::GetActiveViewWindow<SVTK_ViewWindow>(myModule)) {
+ myActor = NULL;
+ return;
+ }
+
VISU::ColoredPrs3d_i* aColoredPrs3d = dynamic_cast< VISU::ColoredPrs3d_i* >( aPrs3d );
anIsValidSelection &= ( aColoredPrs3d && aColoredPrs3d->IsTimeStampFixed() );
try {
myColoredPrs3d->SetMapScale( aValue );
myColoredPrs3d->UpdateActor( myActor );
- myViewWindow->Repaint();
+ if(myViewWindow)
+ myViewWindow->Repaint();
} catch (std::exception& exc) {
INFOS( "Follow exception was occured :\n" << exc.what() );
} catch (...) {