diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-24 09:35:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-24 12:30:05 +0200 |
commit | cda309c1b8302c6bf4e2bbc24afd82f05d552599 (patch) | |
tree | 62b1bfe05139776438ada079ca92582f16f04d2c | |
parent | 6f9f94d5f06b1be4bbeeacf7dc69645627e69fa8 (diff) |
get text colour without vcl::Window
Change-Id: Ib1a9d438de9a310cf101aeda37f36a791b86ec76
Reviewed-on: https://gerrit.libreoffice.org/79438
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | cui/source/tabpages/border.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx index d8bed85f67cd..4ff40e150845 100644 --- a/cui/source/tabpages/border.cxx +++ b/cui/source/tabpages/border.cxx @@ -31,6 +31,7 @@ #include <sfx2/htmlmode.hxx> #include <vcl/event.hxx> #include <vcl/settings.hxx> +#include <vcl/svapp.hxx> #include <svx/flagsdef.hxx> #include <svl/grabbagitem.hxx> #include <svl/intitem.hxx> @@ -758,7 +759,8 @@ void SvxBorderTabPage::Reset( const SfxItemSet* rSet ) aColor = COL_BLACK; m_xLbLineColor->SelectEntry(aColor); - m_xLbLineStyle->SetColor(GetTextColor()); + auto nTextColor = Application::GetSettings().GetStyleSettings().GetWindowTextColor(); + m_xLbLineStyle->SetColor(nTextColor); // Select all visible lines, if they are all equal. if( bWidthEq && bColorEq ) |