SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
int aPrecision = aResourceMgr->integerValue( "VISU", "floating_point_precision", 0 );
- ScalFact->setDecimals( aPrecision*(-1) ); // ScalFact->setDecimals(38);
+ ScalFact->setDecimals( aPrecision ); // ScalFact->setDecimals(38);
+ // ScalFact->setFormat ( false ); // generic format
ScalFact->setValue(0.1);
TopGroupLayout->addWidget(ScalFact, 0, 1);
//Hide thePrs3d from Viewer
SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow<SVTK_ViewWindow>(theModule);
- if (VISU_Actor* anActor = FindActor(aViewWindow, thePrs3d))
- if (anActor->GetVisibility())
- anActor->VisibilityOff();
+ if (aViewWindow)
+ if (VISU_Actor* anActor = FindActor(aViewWindow, thePrs3d))
+ if (anActor->GetVisibility())
+ anActor->VisibilityOff();
VisuGUI_DialogRunner r(aDlg);
int dlgResult = r.run( false );
QObject::tr("ERR_CANT_BUILD_PRESENTATION") + ": " + QObject::tr(exc.what()));
}
- if (VISU_Actor* anActor = FindActor(aViewWindow, thePrs3d))
- if (!anActor->GetVisibility())
- anActor->VisibilityOn();
+ if (aViewWindow)
+ if (VISU_Actor* anActor = FindActor(aViewWindow, thePrs3d))
+ if (!anActor->GetVisibility())
+ anActor->VisibilityOn();
delete aDlg;
}