summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-04-17 12:24:17 +0900
committerTomaž Vajngerl <quikee@gmail.com>2019-04-17 09:23:26 +0200
commit1e917af27d18d934f3e9122aa98cd950b74ca246 (patch)
treed31f5b38ddabb692fe38aef640950660105124e1 /vcl/source/control
parent9a0934babd347c579c7f5f5c4094800cdc239063 (diff)
tdf#124032 fix Edit background drawing
IsPaintTransparent() is preventing to paint the background but not sure why this is needed. removing this condition doesn't seem to have any ill effects. Change-Id: I5ac54e208e4f1c9941beb4012aa44182d21dbed9 Reviewed-on: https://gerrit.libreoffice.org/70855 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/edit.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 0ced8a8675ca..3f20145b5736 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -329,6 +329,7 @@ void Edit::ImplInit(vcl::Window* pParent, WinBits nStyle)
SetCursor( new vcl::Cursor );
SetPointer( PointerStyle::Text );
+ ApplySettings(*this);
uno::Reference< datatransfer::dnd::XDragGestureListener> xDGL( mxDnDListener, uno::UNO_QUERY );
uno::Reference< datatransfer::dnd::XDragGestureRecognizer > xDGR = GetDragGestureRecognizer();
@@ -382,7 +383,7 @@ void Edit::ApplySettings(vcl::RenderContext& rRenderContext)
Color aTextColor = rStyleSettings.GetFieldTextColor();
ApplyControlForeground(rRenderContext, aTextColor);
- if (ImplUseNativeBorder(rRenderContext, GetStyle()) || IsPaintTransparent())
+ if (ImplUseNativeBorder(rRenderContext, GetStyle()))
{
// Transparent background
rRenderContext.SetBackground();