[goffice] Fix placement of minus sign. [#686575]



commit 472cd80844884ff5cac642d0db4fd04b1f6c3f36
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Fri Nov 9 18:20:21 2012 -0700

    Fix placement of minus sign. [#686575]
    
    2012-11-09 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* goffice/utils/go-format.c (go_format_execute): fix placement of minus sign

 ChangeLog                 |    4 ++++
 NEWS                      |    1 +
 goffice/utils/go-format.c |    2 +-
 3 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3ec25ef..1c79342 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2012-11-09 Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* goffice/utils/go-format.c (go_format_execute): fix placement of minus sign
+
+2012-11-09 Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* goffice/utils/go-format.c (go_format_parse): use 32 bits for the locale
 
 2012-11-08  Jean Brefort  <jean brefort normalesup org>
diff --git a/NEWS b/NEWS
index 7955fdd..ea04e4c 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ goffice 0.9.7:
 Andreas:
 	* Handle some more unusual formats in ODF export. [#683801]
 	* Fix some magic date handling. [#686575]
+	* Fix placement of minus sign. [#686575]
 
 Chris Leonard:
 	* Updated locales. [#682749]
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index b4e3106..b788cdb 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -4127,7 +4127,7 @@ SUFFIX(go_format_execute) (PangoLayout *layout, GString *dst,
 			if (numtxt->str[0] == '-') {
 				g_string_erase (numtxt, 0, 1);
 				dotpos--;
-				INSERT_MINUS(numpos);
+				INSERT_MINUS(0);
 			}
 			break;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]