diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2011-05-27 22:42:02 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2011-05-27 22:42:02 +0200 |
commit | e6e3d87c3d402bdc323ccccc22f2a12a5609530e (patch) | |
tree | 3988e374cb4c5ce695767784924f96a2a7e072a6 /src | |
parent | 63d17469617df96931e13c006f62810b6eeade72 (diff) | |
parent | a1f608c205908f40f848f1735c9e68fc6f1bb53f (diff) |
merge
Diffstat (limited to 'src')
-rw-r--r-- | src/prefsparser.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/prefsparser.cc b/src/prefsparser.cc index 7d0582cd..9d245706 100644 --- a/src/prefsparser.cc +++ b/src/prefsparser.cc @@ -171,13 +171,6 @@ int PrefsParser::parseOption(char *name, char *value) 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 @@ void PrefsParser::parse(FILE *fp) // 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; + } } |