summaryrefslogtreecommitdiffstats
path: root/source/helper.c
diff options
context:
space:
mode:
authorQC <qball@gmpclient.org>2015-08-26 21:49:53 +0200
committerQC <qball@gmpclient.org>2015-08-26 21:49:53 +0200
commit22775015665c021d78797d0342e8fe083a7b7387 (patch)
tree3e0e101ed814bde6fc1a119048a4dbe61b541556 /source/helper.c
parentd9a9d2489adb3cbaf47d9c7696df956af30afe38 (diff)
Cleanup drawing a bit.
Diffstat (limited to 'source/helper.c')
-rw-r--r--source/helper.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source/helper.c b/source/helper.c
index 225f89bf..20b82b99 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -486,11 +486,13 @@ void config_sanity_check ( )
config.location = WL_CENTER;
found_error = 1;
}
- if ( !( config.line_margin >= 3 && config.line_margin <= 50 ) ) {
- g_string_append_printf ( msg, "\t<b>config.line_margin</b>=%d is invalid. Value should be between %d and %d.\n",
- config.line_margin, 3, 50 );
- config.line_margin = 3;
- found_error = 1;
+ if ( 0 ) {
+ if ( !( config.line_margin >= 3 && config.line_margin <= 50 ) ) {
+ g_string_append_printf ( msg, "\t<b>config.line_margin</b>=%d is invalid. Value should be between %d and %d.\n",
+ config.line_margin, 3, 50 );
+ config.line_margin = 3;
+ found_error = 1;
+ }
}
if ( found_error ) {
g_string_append ( msg, "Please update your configuration." );