}
}
- bool isPoly = anIsPolyline || anIsPolyline3D;
- if( isPoly )
- {
- theMenu->addSeparator();
- QAction* a = action( ShowHideArrows );
- a->setText( arrowsVisible() ? tr( "HIDE_ARROWS" ) : tr( "SHOW_ARROWS" ) );
- theMenu->addAction( a );
- }
+ theMenu->addSeparator();
+ QAction* a = action( ShowHideArrows );
+ a->setText( arrowsVisible() ? tr( "HIDE_ARROWS" ) : tr( "SHOW_ARROWS" ) );
+ theMenu->addAction( a );
}
void HYDROGUI_Module::createPreferences()
{
if( resMgr->hasValue( "polyline", "prev_arrow_type" ) )
resMgr->value( "polyline", "prev_arrow_type", aType );
+
+ if( aType<=0 )
+ aType = 1;
resMgr->setValue( "polyline", "arrow_type", aType );
}
else