diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-11-12 21:17:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-11-13 09:49:18 +0000 |
commit | 19f4ebd8a54da0ae03b9cc8481613e5cd20ee1e7 (patch) | |
tree | 8c96bbd220cb587dc76e37558d4e9f6caad089ec /vcl/source/control/fixedhyper.cxx | |
parent | b1cf29092494e59a59b4f8f5786a7617ed270073 (diff) |
use SetControlForeground instead of SetTextColor
because that's persistent across unrelated style
changes otherwise setting e.g. alignment will
reset the color to default black
Change-Id: I2b975c3914a59a93e54d72aa0975a066b5edf533
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 87aa06fddbad..9bfd0b880b70 100644 --- a/vcl/source/control/fixedhyper.cxx +++ b/vcl/source/control/fixedhyper.cxx @@ -49,7 +49,7 @@ void FixedHyperlink::Initialize() aFont.SetUnderline( UNDERLINE_SINGLE ); SetControlFont( aFont ); // changes the color to light blue - SetTextColor( Color( COL_LIGHTBLUE ) ); + SetControlForeground( Color( COL_LIGHTBLUE ) ); // calculates text len m_nTextLen = GetCtrlTextWidth( GetText() ); } @@ -85,7 +85,7 @@ void FixedHyperlink::GetFocus() void FixedHyperlink::LoseFocus() { - SetTextColor( Color( COL_LIGHTBLUE ) ); + SetTextColor( GetControlForeground() ); Paint( Rectangle( Point(), GetSizePixel() ) ); HideFocus(); } |