summaryrefslogtreecommitdiff
path: root/academic/gwyddion/gwyddion-2.38-stat-tool-save-crash.patch
diff options
context:
space:
mode:
authorDaniil Bratashov <dn2010@gmail.com>2014-10-01 09:04:51 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-10-03 10:16:54 +0700
commit39615f9c1cd9e9211dd32fe4d28ea9130d32440d (patch)
tree6905fc7d597530053e8f0f6dd7f22706a2bed267 /academic/gwyddion/gwyddion-2.38-stat-tool-save-crash.patch
parentcbe9d548b9cfa751e7b4fd2b6f0d6f28e2a3e732 (diff)
downloadslackbuilds-39615f9c1cd9e9211dd32fe4d28ea9130d32440d.tar.gz
academic/gwyddion: Fix crash on save.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/gwyddion/gwyddion-2.38-stat-tool-save-crash.patch')
-rw-r--r--academic/gwyddion/gwyddion-2.38-stat-tool-save-crash.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/academic/gwyddion/gwyddion-2.38-stat-tool-save-crash.patch b/academic/gwyddion/gwyddion-2.38-stat-tool-save-crash.patch
new file mode 100644
index 0000000000..470ad5a50c
--- /dev/null
+++ b/academic/gwyddion/gwyddion-2.38-stat-tool-save-crash.patch
@@ -0,0 +1,13 @@
+Index: modules/tools/stats.c
+===================================================================
+--- modules/tools/stats.c (revision 16602)
++++ modules/tools/stats.c (working copy)
+@@ -1096,7 +1096,7 @@
+ area = report_data->same_units ? fmt_val(area) : g_strdup(_("N.A."));
+ projarea = fmt_val(projarea);
+
+- vf = gwy_si_unit_get_format_with_digits(siunitarea,
++ vf = gwy_si_unit_get_format_with_digits(siunitvar,
+ GWY_SI_UNIT_FORMAT_PLAIN,
+ report_data->results.var, 3, vf);
+ var = fmt_val(var);