summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Sun.COM>2010-03-10 11:53:03 +0100
committerPhilipp Lohmann [pl] <Philipp.Lohmann@Sun.COM>2010-03-10 11:53:03 +0100
commitbfad685f27e907072d5c1b11b5103bf7cf40b0fc (patch)
tree312e40d375d502f3c0f6cd7b6adcbdbb01ef1a69 /framework
parent4ec8b42acf54f852e2b3c82d96af1f3e999024a3 (diff)
native0: #161727# latest background bitmap does not distinguish RTL, but placement does
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/backingwindow.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/framework/source/services/backingwindow.cxx b/framework/source/services/backingwindow.cxx
index 8ac6382078ec..511edd6fb6cb 100644
--- a/framework/source/services/backingwindow.cxx
+++ b/framework/source/services/backingwindow.cxx
@@ -354,7 +354,12 @@ void BackingWindow::initBackground()
maOpenText.SetControlBackground( aTextBGColor );
if( mnLayoutStyle == 1 )
- mnBtnPos = maBackgroundLeft.GetSizePixel().Width() + 40;
+ {
+ if( Application::GetSettings().GetLayoutRTL() )
+ mnBtnPos = maBackgroundRight.GetSizePixel().Width() + 40;
+ else
+ mnBtnPos = maBackgroundLeft.GetSizePixel().Width() + 40;
+ }
}
void BackingWindow::initControls()