summaryrefslogtreecommitdiff
path: root/vcl/source/control/fixedhyper.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-11-12 21:17:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-11-13 09:49:18 +0000
commit19f4ebd8a54da0ae03b9cc8481613e5cd20ee1e7 (patch)
tree8c96bbd220cb587dc76e37558d4e9f6caad089ec /vcl/source/control/fixedhyper.cxx
parentb1cf29092494e59a59b4f8f5786a7617ed270073 (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.cxx4
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();
}