]> www.fi.muni.cz Git - evince.git/commitdiff
Fixes check for default units string translation. Bug #533323.
authorMatthias Drochner <M.Drochner@fz-juelich.de>
Sun, 18 May 2008 21:05:32 +0000 (21:05 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 18 May 2008 21:05:32 +0000 (21:05 +0000)
2008-05-19  Matthias Drochner  <M.Drochner@fz-juelich.de>

* properties/ev-properties-view.c (get_default_user_units):
Fixes check for default units string translation. Bug #533323.

svn path=/trunk/; revision=3032

ChangeLog
properties/ev-properties-view.c

index 04609d4aa745cb4824634b0b82bfb22c49349ebb..2bd45fb5f846bc93b1e0f5ae3adf41710cb775cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-19  Matthias Drochner  <M.Drochner@fz-juelich.de>
+
+       * properties/ev-properties-view.c (get_default_user_units):
+       Fixes check for default units string translation. Bug #533323.
+
 2008-05-01  Hans Petter Jansson  <hpj@novell.com>
 
        * backend/impress/iksemel.c (sax_core): Fix a free() that should
index 3ebd368105e35db519c0de76b04971d3483b72b2..4162fddd3dc8bbe8049c6d3f92e6ba1cbfbfba3d 100644 (file)
@@ -216,10 +216,12 @@ get_default_user_units (void)
                return GTK_UNIT_MM;  /* metric */
 #endif
 
+       if (strcmp (e, "default:mm") == 0)
+               return GTK_UNIT_MM;
        if (strcmp (e, "default:inch") == 0)
                return GTK_UNIT_INCH;
-       else if (strcmp (e, "default:mm") == 0)
-               g_warning ("Whoever translated default:mm did so wrongly.\n");
+       
+       g_warning ("Whoever translated default:mm did so wrongly.\n");
                                
        return GTK_UNIT_MM;
 }