diff options
author | Armin Le Grand <alg@apache.org> | 2013-10-29 17:40:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-11-05 12:37:15 +0000 |
commit | 36f21914b31a28f75ec2195c266424a18408f747 (patch) | |
tree | fae33ceb49e725416a2e154862d3dd83c534d8dc /svx | |
parent | 7098f83ec3121f2fb8d077795575c600744ed85a (diff) |
Resolves: i123564 corrected some aspects when working with bitmaps...
with low color depth or small size
(cherry picked from commit ba54ce4fc788605fc96235f432b455311faee406)
Conflicts:
cui/source/tabpages/tpbitmap.cxx
Change-Id: I10677414ab7d1904dbb29cd395a0c0334e0faa03
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/xoutdev/xattrbmp.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svx/source/xoutdev/xattrbmp.cxx b/svx/source/xoutdev/xattrbmp.cxx index 89d2261aa165..e98c4d5bbbea 100644 --- a/svx/source/xoutdev/xattrbmp.cxx +++ b/svx/source/xoutdev/xattrbmp.cxx @@ -264,8 +264,10 @@ bool SVX_DLLPUBLIC isHistorical8x8(const BitmapEx& rBitmapEx, BitmapColor& o_rBa { const BitmapPalette& rPalette = pRead->GetPalette(); - o_rBack = rPalette[1]; - o_rFront = rPalette[0]; + // #i123564# bachground and foregrund were exchanged; of course + // rPalette[0] is the background color + o_rFront = rPalette[1]; + o_rBack = rPalette[0]; return true; } |