summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-14 13:20:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-14 13:22:38 +0100
commitc60a5753e311918f0c6bd85073390a76de713b3f (patch)
treef09573ffe3e5455096161389795e45b5aa78f2fa /vcl
parentebe4eb9d0ab2759d7631dd2a967a7031da7e4c5e (diff)
honour NoFocusRects in ListBoxes like Buttons, etc
Change-Id: I23cc1b5d5f61e0f6d67181d544a900ff99b3b8bd
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/ilstbox.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index 8e94b42ed4e9..d624398cec3f 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -31,6 +31,7 @@
#include <ilstbox.hxx>
#include <controldata.hxx>
#include <svdata.hxx>
+#include <window.h>
#include <com/sun/star/i18n/XCollator.hpp>
#include <com/sun/star/accessibility/XAccessible.hpp>
@@ -2611,6 +2612,8 @@ ImplWin::ImplWin( vcl::Window* pParent, WinBits nWinStyle ) :
else
SetBackground( Wallpaper( GetSettings().GetStyleSettings().GetFieldColor() ) );
+ ImplGetWindowImpl()->mbUseNativeFocus = ImplGetSVData()->maNWFData.mbNoFocusRects;
+
mbInUserDraw = false;
mbUserDrawEnabled = false;
mbEdgeBlending = false;