summaryrefslogtreecommitdiff
path: root/vcl/source/control/button.cxx
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Sun.COM>2010-04-12 19:59:19 +0200
committerPhilipp Lohmann [pl] <Philipp.Lohmann@Sun.COM>2010-04-12 19:59:19 +0200
commit84fc07bae918a72c15e3f39623c4564b790406bf (patch)
treebdd47411bc0853fce9a60f2162cc12b4a7142c4b /vcl/source/control/button.cxx
parentdbe5e2a03511da7dcd3399fe31c40d6ac5e96326 (diff)
fwk140: #i110769# fix highlight issue with new flat buttons
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r--vcl/source/control/button.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 1f45b5902381..08a479c942b9 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -1879,7 +1879,8 @@ long PushButton::PreNotify( NotifyEvent& rNEvt )
pBorder->Update();
}
}
- else if( IsNativeControlSupported(CTRL_PUSHBUTTON, PART_ENTIRE_CONTROL) )
+ else if( (GetStyle() & WB_FLATBUTTON) ||
+ IsNativeControlSupported(CTRL_PUSHBUTTON, PART_ENTIRE_CONTROL) )
{
Invalidate();
}