summaryrefslogtreecommitdiff
path: root/sw/source/core/crsr/contentcontrolbutton.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/crsr/contentcontrolbutton.cxx')
-rw-r--r--sw/source/core/crsr/contentcontrolbutton.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/crsr/contentcontrolbutton.cxx b/sw/source/core/crsr/contentcontrolbutton.cxx
index 34cbd38e663a..310eba3092f1 100644
--- a/sw/source/core/crsr/contentcontrolbutton.cxx
+++ b/sw/source/core/crsr/contentcontrolbutton.cxx
@@ -111,7 +111,7 @@ void SwContentControlButton::Paint(vcl::RenderContext& rRenderContext, const too
Point aButtonPos(aFrameRect.TopLeft());
aButtonPos.AdjustX(aFrameRect.GetSize().getWidth() - nPadding * 2);
Size aButtonSize(aFrameRect.GetSize());
- aButtonSize.setWidth(GetSizePixel().getWidth() - aFrameRect.getWidth() - nPadding);
+ aButtonSize.setWidth(GetSizePixel().getWidth() - aFrameRect.getOpenWidth() - nPadding);
const tools::Rectangle aButtonRect(tools::Rectangle(aButtonPos, aButtonSize));
// Background & border