diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-15 20:39:06 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-16 21:57:15 +0900 |
commit | 264fb9f16336e2cfd8f937b630fc167faab0aae3 (patch) | |
tree | 95e716df471a385572d6a52570aa82cfc6d646c6 /dbaccess/source/ui/control/marktree.cxx | |
parent | a76dcdfaa6c6d2b1d73fb1c96fe38dd7e452f48a (diff) |
refactor dbacess classes to use RenderContext
Change-Id: I60e436ec1e6974e5fb8c6525552c6e172ceca0ca
Diffstat (limited to 'dbaccess/source/ui/control/marktree.cxx')
-rw-r--r-- | dbaccess/source/ui/control/marktree.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/control/marktree.cxx b/dbaccess/source/ui/control/marktree.cxx index 54634ed7d393..0291f06e9c25 100644 --- a/dbaccess/source/ui/control/marktree.cxx +++ b/dbaccess/source/ui/control/marktree.cxx @@ -50,15 +50,15 @@ void OMarkableTreeListBox::Paint(vcl::RenderContext& rRenderContext, const Recta { if (!IsEnabled()) { - vcl::Font aOldFont = GetFont(); + vcl::Font aOldFont = rRenderContext.GetFont(); vcl::Font aNewFont(aOldFont); StyleSettings aSystemStyle = Application::GetSettings().GetStyleSettings(); aNewFont.SetColor(aSystemStyle.GetDisableColor()); - SetFont(aNewFont); + rRenderContext.SetFont(aNewFont); DBTreeListBox::Paint(rRenderContext, _rRect); - SetFont(aOldFont); + rRenderContext.SetFont(aOldFont); } else DBTreeListBox::Paint(rRenderContext, _rRect); |