theMenu->addAction( action( DuplicateStricklerTableId ) );
theMenu->addSeparator();
- if ( !isLandCoversScalarMapModeOn( anActiveViewId ) ) {
+ if ( !isLandCoversScalarMapModeOn( anActiveViewId ) &&
+ !getObjectShapes( anActiveViewId, KIND_LAND_COVER ).isEmpty() ) {
theMenu->addAction( action( LandCoverScalarMapModeOnId ) );
theMenu->addSeparator();
}
theMenu->addSeparator();
}
- if (anIsPolyline || anIsPolyline3D)
- theMenu->addAction( action( ExportPolylineId ) );
+ bool anIsPoly = anIsPolyline || anIsPolyline3D;
+ if ((anIsPoly && !anIsLandCover) || (!anIsPoly && anIsLandCover))
+ theMenu->addAction( action( ExportToShapeFileID ) );
// Add copy action
QAction* aCopyAction = action( CopyId );