[easytag] Fix capitalization in process fields scanner



commit 1f5ddcc0070025fd68d61c4f256f1a2d83016b14
Author: David King <amigadave amigadave com>
Date:   Sat Sep 13 22:43:57 2014 +0100

    Fix capitalization in process fields scanner
    
    Iterate to the end of the string, rather than only processing the first
    2 words.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736609

 src/scan_dialog.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/scan_dialog.c b/src/scan_dialog.c
index f688433..d086014 100644
--- a/src/scan_dialog.c
+++ b/src/scan_dialog.c
@@ -1654,10 +1654,10 @@ Scan_Process_Fields_First_Letters_Uppercase (EtScanDialog *self, gchar **str)
             c = g_utf8_get_char(word);
             strncpy(word, utf8_character, g_unichar_to_utf8(g_unichar_toupper(c), utf8_character));
 
-            if (!g_settings_get_boolean (MainSettings,
-                                         "process-uppercase-prepositions"))
+            if (g_settings_get_boolean (MainSettings,
+                                        "process-uppercase-prepositions"))
             {
-                break;
+                goto increment;
             }
 
             /* Lowercase the first character of this word if found in the
@@ -1673,6 +1673,7 @@ Scan_Process_Fields_First_Letters_Uppercase (EtScanDialog *self, gchar **str)
             }
         }
 
+increment:
         temp = word;
     }
 


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