From 3cb4e8e373e1f37b71e706d9970982da60727284 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 19 Jul 2020 04:09:34 +0200 Subject: [PATCH] Fix OSD Pretty margin --- src/widgets/osdpretty.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/osdpretty.cpp b/src/widgets/osdpretty.cpp index f93b5f046..645b357d5 100644 --- a/src/widgets/osdpretty.cpp +++ b/src/widgets/osdpretty.cpp @@ -146,7 +146,7 @@ OSDPretty::OSDPretty(Mode mode, QWidget *parent) // Set the margins to allow for the drop shadow QBoxLayout *l = qobject_cast(layout()); - QMargins margin = l->contentsMargins() + kDropShadowSize; + QMargins margin = l->contentsMargins(); margin.setTop(margin.top() + kDropShadowSize); margin.setBottom(margin.bottom() + kDropShadowSize); margin.setLeft(margin.left() + kDropShadowSize);