mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix incorrect argument order for %.*f
Strangely, *prinf() on Linux appears to do the right thing in either order (my guess is based on the type of the two values?), but on Windows things go badly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
95cb4e85ee
commit
a3ce3221fd
2 changed files with 2 additions and 2 deletions
|
@ -1251,7 +1251,7 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me
|
|||
put_format(b, translate("gettextFromC", "V: %.1f%s\n"), speedvalue, vertical_speed_unit);
|
||||
sacvalue = get_volume_units(entry->sac, &decimals, &unit);
|
||||
if (entry->sac && prefs.show_sac)
|
||||
put_format(b, translate("gettextFromC", "SAC: %.*f%s/min\n"), sacvalue, decimals, unit);
|
||||
put_format(b, translate("gettextFromC", "SAC: %.*f%s/min\n"), decimals, sacvalue, unit);
|
||||
if (entry->cns)
|
||||
put_format(b, translate("gettextFromC", "CNS: %u%%\n"), entry->cns);
|
||||
if (prefs.pp_graphs.po2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue