From 7b9a24f787397e274c8d9784b58c5023c12b35c6 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 19 Feb 2013 19:14:49 +0100 Subject: [PATCH] Limit debug print to debug mode --- gtk/xoptions.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gtk/xoptions.c b/gtk/xoptions.c index fae7d9f..0f90d6e 100644 --- a/gtk/xoptions.c +++ b/gtk/xoptions.c @@ -1119,7 +1119,7 @@ GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent // if(n > 50) width = 4; else if(n>24) width = 2; else width = 1; width = n / 20 + 1; height = n / width + 1; -printf("n=%d, h=%d, w=%d\n",n,height,width); +if(appData.debugMode) printf("n=%d, h=%d, w=%d\n",n,height,width); // if(n && (currentOption[n-1].type == Button || currentOption[n-1].type == SaveButton)) currentOption[n].min = SAME_ROW; // OK on same line currentOption[n].type = EndMark; currentOption[n].target = NULL; // delimit list by callback-less end mark } -- 1.7.0.4