gcalctool r2366 - trunk/gcalctool



Author: rancell
Date: Sun Feb  8 12:19:30 2009
New Revision: 2366
URL: http://svn.gnome.org/viewvc/gcalctool?rev=2366&view=rev

Log:
Handle locales with no thousands separator

Modified:
   trunk/gcalctool/gtk.c

Modified: trunk/gcalctool/gtk.c
==============================================================================
--- trunk/gcalctool/gtk.c	(original)
+++ trunk/gcalctool/gtk.c	Sun Feb  8 12:19:30 2009
@@ -2109,7 +2109,7 @@
         /* If the clipboard buffer contains any occurances of the "thousands
          * separator", remove them.
          */
-        if (strncmp(srcp, v->tsep, strlen(v->tsep)) == 0) {
+        if (v->tsep[0] != '\0' && strncmp(srcp, v->tsep, strlen(v->tsep)) == 0) {
             srcp += strlen(v->tsep) - 1;
             continue;
         }



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