aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-07-27 22:48:16 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-07-27 22:48:16 +0800
commitf0d21ded368b4fc2bc2285767f08587c5a821185 (patch)
tree666e2eaddd5b2f5147499faa0c956e8c96559ca8
parent6c80ae2e42f11ab1e6aeea312a66d0a6b747321a (diff)
downloadgsoc2013-evolution-f0d21ded368b4fc2bc2285767f08587c5a821185.tar.gz
gsoc2013-evolution-f0d21ded368b4fc2bc2285767f08587c5a821185.tar.zst
gsoc2013-evolution-f0d21ded368b4fc2bc2285767f08587c5a821185.zip
2007-07-27 Johnny Jacob Fix for bug #457523.
svn path=/trunk/; revision=33862
-rw-r--r--filter/ChangeLog6
-rw-r--r--filter/filter-int.c8
2 files changed, 12 insertions, 2 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index a1debaee1e..9926728843 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-27 Johnny Jacob <jjohnny@novell.com>
+
+ ** Fix for bug #457523.
+
+ * filter-int.c: (format_sexp): use (- n) for negative values.
+
2007-06-15 Milan Crha <mcrha@redhat.com>
** Fix for bug #263207
diff --git a/filter/filter-int.c b/filter/filter-int.c
index 873e6a4a33..ce254c4f4a 100644
--- a/filter/filter-int.c
+++ b/filter/filter-int.c
@@ -264,6 +264,10 @@ static void
format_sexp (FilterElement *fe, GString *out)
{
FilterInt *fs = (FilterInt *)fe;
-
- g_string_append_printf (out, "%d", fs->val);
+
+ if (fs->val < 0)
+ /* See #364731 #457523 C6*/
+ g_string_append_printf (out, "(- %d)", (fs->val * -1));
+ else
+ g_string_append_printf (out, "%d", fs->val);
}