[PATCH v2 2/2] Reorder info in information window

Dirk Hohndel dirk at hohndel.org
Wed Nov 13 14:07:14 UTC 2013


The patch description and patch content don't seem to quite match :-)

/D

On Wed, 2013-11-13 at 19:20 +0100, Anton Lundin wrote:
> When moving along the plot, its hard to look at a certain value when its
> place in the info box moves due to that values are added above it. This
> moves the stable values up top in the info box and the values that comes
> and goes further down, so that the box expands downwards.
> 
> Signed-off-by: Anton Lundin <glance at acc.umu.se>
> ---
>  profile.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/profile.c b/profile.c
> index 8370242..5d9cb51 100644
> --- a/profile.c
> +++ b/profile.c
> @@ -1276,10 +1276,6 @@ static void plot_string(struct plot_data *entry, char *buf, int bufsize,
>  		memcpy(buf2, buf, bufsize);
>  		snprintf(buf, bufsize, translate("gettextFromC","%s\nNDL:%umin"), buf2, DIV_UP(entry->ndl, 60));
>  	}
> -	if (entry->sac && prefs.show_sac) {
> -		memcpy(buf2, buf, bufsize);
> -		snprintf(buf, bufsize, translate("gettextFromC","%s\nSAC:%2.1fl/min"), buf2, entry->sac / 1000.0);
> -	}
>  	if (entry->stopdepth_calc && entry->stoptime_calc) {
>  		depthvalue = get_depth_units(entry->stopdepth_calc, NULL, &depth_unit);
>  		memcpy(buf2, buf, bufsize);




More information about the subsurface mailing list