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 b7f3500fc029..01baaf575b16 100644 --- a/vcl/source/control/fixedhyper.cxx +++ b/vcl/source/control/fixedhyper.cxx @@ -53,7 +53,7 @@ void FixedHyperlink::Initialize() // changes the color to link color SetControlForeground( Application::GetSettings().GetStyleSettings().GetLinkColor() ); // calculates text len - m_nTextLen = GetCtrlTextWidth( GetText() ); + m_nTextLen = GetOutDev()->GetCtrlTextWidth( GetText() ); SetClickHdl(LINK(this, FixedHyperlink, HandleClick)); } @@ -147,7 +147,7 @@ void FixedHyperlink::SetURL( const OUString& rNewURL ) void FixedHyperlink::SetText(const OUString& rNewDescription) { FixedText::SetText(rNewDescription); - m_nTextLen = GetCtrlTextWidth(GetText()); + m_nTextLen = GetOutDev()->GetCtrlTextWidth(GetText()); } bool FixedHyperlink::set_property(const OString &rKey, const OUString &rValue) |