From e7d20cf352688bf717a01f4e6d9e6f497c2bea4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 20 Sep 2025 19:19:34 +0200 Subject: New upstream version 5.3.1Beta2 --- app/bin/celev.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'app/bin/celev.c') 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 ); } -- cgit v1.2.3