gnucash maint: Fix some copy-pasted code.

Geert Janssens gjanssens at code.gnucash.org
Thu May 17 14:19:05 EDT 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/519ce9fb (commit)
	from  https://github.com/Gnucash/gnucash/commit/5f5ad968 (commit)



commit 519ce9fb81d4ad24ae4a5849a0b1ea46057e0a94
Author: Bill Nottingham <notting at splat.cc>
Date:   Wed May 16 22:16:20 2018 -0400

    Fix some copy-pasted code.

diff --git a/gnucash/gnome-utils/gnc-gnome-utils.c b/gnucash/gnome-utils/gnc-gnome-utils.c
index 1ed551f..e44da79 100644
--- a/gnucash/gnome-utils/gnc-gnome-utils.c
+++ b/gnucash/gnome-utils/gnc-gnome-utils.c
@@ -129,8 +129,7 @@ gnc_configure_date_format (void)
     /* Only a subset of the qof date formats is currently
      * supported for date entry.
      */
-    if ((df > QOF_DATE_FORMAT_LOCALE)
-            || (df > QOF_DATE_FORMAT_LOCALE))
+    if (df > QOF_DATE_FORMAT_LOCALE)
     {
         PERR("Incorrect date format");
         return;



Summary of changes:
 gnucash/gnome-utils/gnc-gnome-utils.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)



More information about the gnucash-changes mailing list