diff options
Diffstat (limited to 'app/bin/celev.c')
| -rw-r--r-- | app/bin/celev.c | 11 | 
1 files changed, 8 insertions, 3 deletions
diff --git a/app/bin/celev.c b/app/bin/celev.c index e55a1fe..f97735a 100644 --- a/app/bin/celev.c +++ b/app/bin/celev.c @@ -382,7 +382,11 @@ static STATUS_T CmdElevation( wAction_t action, coOrd pos )  	case C_START:  		if ( elevW == NULL ) {  			elevW = ParamCreateDialog( &elevationPG, MakeWindowTitle(_("Elevation")), -			                           _("Done"), DoElevDone, wHide, TRUE, LayoutElevW, 0, DoElevUpdate ); +			                           NULL, NULL, +			                           ParamCancel_Reset, +			                           TRUE, LayoutElevW, +			                           PD_F_ALT_CANCELLABEL, +			                           DoElevUpdate );  		}  		elevModeV = 0;  		elevHeightV = 0.0; @@ -512,6 +516,7 @@ static STATUS_T CmdElevation( wAction_t action, coOrd pos )  		return C_TERMINATE;  	case C_CANCEL:  		elevTrk = NULL; +		DoElevUpdate( NULL, 1, NULL );  		wHide( elevW );  		InfoMessage( "" );  		return C_TERMINATE; @@ -533,13 +538,13 @@ static STATUS_T CmdElevation( wAction_t action, coOrd pos ) -#include "bitmaps/elevation.xpm3" +#include "bitmaps/elevation.image3"  EXPORT void InitCmdElevation( wMenu_p menu )  {  	ParamRegister( &elevationPG );  	AddMenuButton( menu, CmdElevation, "cmdElevation", _("Elevation"), -	               wIconCreatePixMap(elevation_xpm3[iconSize]), LEVEL0_50, +	               wIconCreatePixMap(elevation_image3[iconSize]), LEVEL0_50,  	               IC_POPUP|IC_LCLICK|IC_RCLICK|IC_WANT_MOVE, ACCL_ELEVATION, NULL );  }  | 
