X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-var-store.c;h=d495bd98dd16d174a72f5ab9d9a211087394b11b;hb=cf5e75010ed9fa9b8eb75a71d1419d40e1a8ddd8;hp=ddfc802f576051277fa45226efc618636eb1dac1;hpb=173d1687aea88e0e5e1b1d8615ed68ebefb15d08;p=pspp diff --git a/src/ui/gui/psppire-var-store.c b/src/ui/gui/psppire-var-store.c index ddfc802f57..d495bd98dd 100644 --- a/src/ui/gui/psppire-var-store.c +++ b/src/ui/gui/psppire-var-store.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2006, 2009, 2010 Free Software Foundation + Copyright (C) 2006, 2009, 2010, 2011 Free Software Foundation This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -489,7 +489,7 @@ psppire_var_store_clear (PsppireSheetModel *model, glong row, glong col) switch (col) { case PSPPIRE_VAR_STORE_COL_LABEL: - var_set_label (pv, NULL); + var_clear_label (pv); return TRUE; break; } @@ -588,7 +588,8 @@ psppire_var_store_set_string (PsppireSheetModel *model, break; case PSPPIRE_VAR_STORE_COL_LABEL: { - var_set_label (pv, text); + var_set_label (pv, text, + psppire_dict_encoding (var_store->dictionary), true); return TRUE; } break; @@ -752,7 +753,8 @@ text_for_column (PsppireVarStore *vs, { gchar *const vstr = value_to_text (vl->value, dict, *write_spec); - return g_strdup_printf ( "{%s,`%s'}_", vstr, val_lab_get_label (vl)); + return g_strdup_printf (_("{%s,`%s'}_"), vstr, + val_lab_get_escaped_label (vl)); } } }