LightApp_Application* anApp = module()->getApp();
OCCViewer_ViewManager* aViewManager =
- dynamic_cast<OCCViewer_ViewManager*>( anApp->getViewManager( OCCViewer_Viewer::Type(), true ) );
+ dynamic_cast<OCCViewer_ViewManager*>( anApp->getViewManager( OCCViewer_Viewer::Type(), false ) );
size_t aViewId = (size_t)aViewManager->getViewModel();
theMenu->addAction( action( DuplicateStricklerTableId ) );
theMenu->addSeparator();
- if ( !isLandCoversScalarMapModeOn( anActiveViewId ) ) {
+ if ( !isLandCoversScalarMapModeOn( anActiveViewId ) &&
+ !getObjectShapes( anActiveViewId, KIND_LAND_COVER ).isEmpty() ) {
theMenu->addAction( action( LandCoverScalarMapModeOnId ) );
theMenu->addSeparator();
}