gnucash maint: Undo unintended change in Bug 798679 commit.

John Ralls jralls at code.gnucash.org
Sun Dec 11 22:54:48 EST 2022


Updated	 via  https://github.com/Gnucash/gnucash/commit/fae5de80 (commit)
	from  https://github.com/Gnucash/gnucash/commit/fd2761bd (commit)



commit fae5de80d36db1a2a4ef0ae93012cb34e38354d1
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Dec 11 19:54:35 2022 -0800

    Undo unintended change in Bug 798679 commit.

diff --git a/libgnucash/app-utils/gnc-ui-util.c b/libgnucash/app-utils/gnc-ui-util.c
index 8b63c5981..c3a829582 100644
--- a/libgnucash/app-utils/gnc-ui-util.c
+++ b/libgnucash/app-utils/gnc-ui-util.c
@@ -2681,7 +2681,6 @@ gnc_filter_text_for_currency_symbol (const gchar *incoming_text,
                                      const gchar *symbol)
 {
     gchar *ret_text = NULL;
-    gchar *normal_text, *normal_sym;
     gchar **split;
 
     if (!incoming_text)
@@ -2690,15 +2689,8 @@ gnc_filter_text_for_currency_symbol (const gchar *incoming_text,
     if (!symbol)
        return g_strdup (incoming_text);
 
-    normal_sym = g_utf8_normalize (symbol, -1, G_NORMALIZE_ALL_COMPOSE);
-    normal_text =
-         g_utf8_normalize (incoming_text, -1, G_NORMALIZE_ALL_COMPOSE);
-    if (g_strrstr (normal_text, normal_sym) == NULL)
-    {
-        g_free(normal_sym);
-        g_free(normal_text);
+    if (g_strrstr (incoming_text, symbol) == NULL)
         return g_strdup (incoming_text);
-    }
 
     split = g_strsplit (incoming_text, symbol, -1);
 



Summary of changes:
 libgnucash/app-utils/gnc-ui-util.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)



More information about the gnucash-changes mailing list