-I$(srcdir)/../Event -I$(srcdir)/../CASCatch \
@CORBA_CXXFLAGS@ @CORBA_INCLUDES@ @LIBXML_INCLUDES@
libSalomeApp_la_LDFLAGS = $(PYTHON_LIBS) $(QT_MT_LIBS)
-libSalomeApp_la_LIBADD = $(KERNEL_LDFLAGS) -lOpUtil -lSALOMELocalTrace -lSalomeDSClient \
+libSalomeApp_la_LIBADD = $(KERNEL_LDFLAGS) -lOpUtil -lSALOMELocalTrace -lSalomeDSClient -lSalomeDS \
../SUIT/libsuit.la ../STD/libstd.la ../CAM/libCAM.la ../ObjBrowser/libObjBrowser.la \
../Prs/libSalomePrs.la ../SPlot2d/libSPlot2d.la ../GLViewer/libGLViewer.la \
../OCCViewer/libOCCViewer.la ../VTKViewer/libVTKViewer.la ../OBJECT/libSalomeObject.la \
SalomeApp_Notebook::SalomeApp_Notebook( SalomeApp_Study* theStudy )
{
- SALOMEDS_Study* aStudy = dynamic_cast<SALOMEDS_Study*>( theStudy->studyDS().operator->() );
- if( aStudy )
- myNotebook = aStudy->GetStudy()->GetNotebook();
+ SALOMEDS_Study* aStudy = _CAST(Study, theStudy->studyDS());
+ if( aStudy ) {
+ SALOMEDS::Study_var studyDS = aStudy->GetStudy();
+ myNotebook = studyDS->GetNotebook();
+ }
}
SalomeApp_Notebook::~SalomeApp_Notebook()