diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-07-04 22:44:08 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-07-04 23:06:28 +0400 |
commit | 504e433331016004fb2edebdb29a85d69084b1d6 (patch) | |
tree | d26725011464e127c374bff2af5f83f48256ec62 /vcl/source | |
parent | 7989bba5b65b6fd27fb99197087456da0b2eee17 (diff) |
fix drawing of calc input line when vcl backend supports CTRL_FRAME
it is counterintuitive, but FRAME_DRAW_NWF was introduced to shrink a draw
rectangle on its way, regardless of native CTRL_FRAME support
(see d02e19e3d8697132f63eca353047a572b1e459ea).
And that is what we want for the calc input line.
Change-Id: Ie2f8bc6e2e21a56b081b8c71cc2b642b8f05848f
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/decoview.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx index 3e85e2e5e0b3..c91a1d06ed1b 100644 --- a/vcl/source/window/decoview.cxx +++ b/vcl/source/window/decoview.cxx @@ -663,7 +663,8 @@ void ImplDrawFrame( OutputDevice *const pDev, Rectangle& rRect, bFlatBorders ) nStyle |= FRAME_DRAW_MONO; - if( pWin && pWin->IsNativeControlSupported(CTRL_FRAME, PART_BORDER) ) + if( !(nStyle & FRAME_DRAW_NWF) && + pWin && pWin->IsNativeControlSupported(CTRL_FRAME, PART_BORDER) ) { ImplControlValue aControlValue( nStyle | (pWin->GetType()==WINDOW_BORDERWINDOW ? |