summary refs log tree commit diff
path: root/clients/tui
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2019-08-06 22:46:20 +0200
committerMichael Biebl <biebl@debian.org>2019-08-06 22:46:20 +0200
commit5c79b900b59a5ad162ecc836e424468207ff031e (patch)
tree2f529ff5c2d8531a2bf2973d96e316786eee9799 /clients/tui
parent2e5fa45ddfbb5cffa1e78221f1cea706e2f298af (diff)
New upstream version 1.20.0 upstream/1.20.0
Diffstat (limited to 'clients/tui')
-rw-r--r--clients/tui/newt/nmt-newt-button-box.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/clients/tui/newt/nmt-newt-button-box.c b/clients/tui/newt/nmt-newt-button-box.c
index 79222c9a..c69c1911 100644
--- a/clients/tui/newt/nmt-newt-button-box.c
+++ b/clients/tui/newt/nmt-newt-button-box.c
@@ -262,12 +262,10 @@ nmt_newt_button_box_size_request (NmtNewtWidget *widget,
 	size_request_buttons (bbox, priv->start_buttons, width, height);
 	size_request_buttons (bbox, priv->end_buttons, width, height);
 
-	if (priv->start_buttons && priv->end_buttons) {
-		if (priv->orientation == NMT_NEWT_BUTTON_BOX_HORIZONTAL)
-			*width += 1;
-		else
-			*height += 1;
-	}
+	if (priv->orientation == NMT_NEWT_BUTTON_BOX_HORIZONTAL)
+		*width += 1;
+	else
+		*height += 1;
 }
 
 static void