SalomeApp_Study* aStudy =
dynamic_cast<SalomeApp_Study*>( getApp()->activeStudy() );
if ( aStudy ) {
- SALOMEDS::Study_var aDSStudy = GeometryGUI::ClientStudyToStudy( aStudy->studyDS() );
+ SALOMEDS::Study_var aDSStudy = GeometryGUI::getStudyServant();
GEOM::GEOM_Gen_var aGeomEngine = GeometryGUI::GetGeomGen();
if ( !aGeomEngine->_is_nil() && !aGeomEngine->_is_nil() ) {
SALOMEDS::StudyBuilder_var aStudyBuilder = aDSStudy->NewBuilder();
if ( theSection == "preferences" && thePref == "default_strickler_coefficient" )
{
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document( application()->activeStudy()->id() );
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
if ( resMgr && !aDoc.IsNull() )
aDoc->SetDefaultStricklerCoefficient( resMgr->doubleValue( theSection, thePref, 0 ) );
}
if ( aDesktop && aDesktop->statusBar() )
{
gp_Pnt aWPnt( X, Y, Z );
- int aStudyId = application()->activeStudy()->id();
- HYDROData_Document::Document( aStudyId )->Transform( aWPnt, false );
+ HYDROData_Document::Document()->Transform( aWPnt, false );
double WX = aWPnt.X(), WY = aWPnt.Y();
QString aXStr = HYDROGUI_Tool::GetCoordinateString( X, true );