academic/gwyddion: Fix crash on save.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Daniil Bratashov 2014-10-01 09:04:51 +07:00 committed by Willy Sudiarto Raharjo
parent cbe9d548b9
commit 39615f9c1c
2 changed files with 18 additions and 3 deletions

View file

@ -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);

View file

@ -2,7 +2,7 @@
# Slackware build script for gwyddion
# Copyright 2012-2014 Daniil Bratashov <dn2010@gmail.com>
# Copyright 2012 Daniil Bratashov <dn2010@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,7 +24,7 @@
PRGNAM=gwyddion
VERSION=${VERSION:-2.38}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -67,7 +67,9 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch --verbose -p0 < $CWD/gwyddion-2.38-stat-tool-save-crash.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \