diff options
Diffstat (limited to 'vcl/source/control/fixedhyper.cxx')
-rw-r--r-- | vcl/source/control/fixedhyper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/fixedhyper.cxx b/vcl/source/control/fixedhyper.cxx index 8a451d2fab47..d43d8559d602 100644 --- a/vcl/source/control/fixedhyper.cxx +++ b/vcl/source/control/fixedhyper.cxx @@ -108,9 +108,9 @@ void FixedHyperlink::GetFocus() Size aSize = GetSizePixel(); tools::Rectangle aFocusRect(Point(1, 1), Size(m_nTextLen + 4, aSize.Height() - 2)); if (GetStyle() & WB_RIGHT) - aFocusRect.Move(aSize.Width() - aFocusRect.getWidth(), 0); + aFocusRect.Move(aSize.Width() - aFocusRect.getOpenWidth(), 0); else if (GetStyle() & WB_CENTER) - aFocusRect.Move((aSize.Width() - aFocusRect.getWidth()) / 2, 0); + aFocusRect.Move((aSize.Width() - aFocusRect.getOpenWidth()) / 2, 0); Invalidate(aFocusRect); ShowFocus(aFocusRect); |