changeset 2058:e1192fad2291

move the disabling of prefs.limit_text_width
author corvid <corvid@lavabit.com>
date Fri, 27 May 2011 19:50:33 +0000
parents b24e8b62bef3
children c66d4b30ca39
files src/prefsparser.cc
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/prefsparser.cc	Fri May 27 13:27:11 2011 -0400
+++ b/src/prefsparser.cc	Fri May 27 19:50:33 2011 +0000
@@ -171,13 +171,6 @@
       MSG_WARN("prefs: {%s} IS recognized but not handled!\n", name);
       break;   /* Not reached */
    }
-
-   if (prefs.limit_text_width) {
-      /* BUG: causes 100% CPU usage with <button> or <input type="image"> */
-      MSG_WARN("Disabling limit_text_width preference (currently broken).\n");
-      prefs.limit_text_width = FALSE;
-   }
-
    return 0;
 }
 
@@ -213,4 +206,11 @@
    // restore the old numeric locale
    setlocale(LC_NUMERIC, oldLocale);
    dFree(oldLocale);
+
+
+   if (prefs.limit_text_width) {
+      /* BUG: causes 100% CPU usage with <button> or <input type="image"> */
+      MSG_WARN("Disabling limit_text_width preference (currently broken).\n");
+      prefs.limit_text_width = FALSE;
+   }
 }