summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/gtkrenderborder.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkrenderborder.c b/gtk/gtkrenderborder.c
index 3aa9be5336..35a939d7ec 100644
--- a/gtk/gtkrenderborder.c
+++ b/gtk/gtkrenderborder.c
@@ -344,9 +344,7 @@ hide_border_sides (double border[4],
for (i = 0; i < 4; i++)
{
- if (hidden_side & (1 << i) ||
- border_style[i] == GTK_BORDER_STYLE_NONE ||
- border_style[i] == GTK_BORDER_STYLE_HIDDEN)
+ if (hidden_side & (1 << i))
border[i] = 0;
}
}