X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=properties%2Fev-properties-view.c;h=4162fddd3dc8bbe8049c6d3f92e6ba1cbfbfba3d;hb=f343927df4325959193353c52cff1ea4b20b2286;hp=3ebd368105e35db519c0de76b04971d3483b72b2;hpb=4d1973b41cac86b367ddc7b03b6c3b42a957d411;p=evince.git diff --git a/properties/ev-properties-view.c b/properties/ev-properties-view.c index 3ebd3681..4162fddd 100644 --- a/properties/ev-properties-view.c +++ b/properties/ev-properties-view.c @@ -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; }