summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-27 12:21:37 +0100
committerAndras Timar <andras.timar@collabora.com>2015-08-31 15:11:57 +0200
commit670dcdd889a36ab8a671eb06911b9a0e84723acd (patch)
tree37d07010772fc1f777d8c53f073b99d0dc46b922 /tools
parent4c427575b34d15933303a18357564f3d45e01864 (diff)
don't write SvxBackgroundColorItem via inherited SvxColorItem::Store
SvxBackgroundColorItem inherits from SvxColorItem and for backwards compatibility with the StarOffice 5 binary file format (yes, really) writes/reads only rgb and not the transparency value, so copying and pasting text from a sidebar comment in writer to itself or another one results in a black character background as the default COL_AUTO turns into black Change-Id: I18b5105dd8e060b9e49dda6026e26d3a0f00d8f5 (cherry picked from commit 3bc69b1d0d8620afd89a993b5f6bc46a2ff5267f) this farcical staroffice 5.0 related junk can at least be const Change-Id: I096d98f6e0cb61cacd9cd82a623f832b88ded1e6 (cherry picked from commit 1e8b7cdbbd084a1e75f82bfff605321c8480b78d) Reviewed-on: https://gerrit.libreoffice.org/18087 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/color.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx
index 453feae9c2e1..2143ac611b24 100644
--- a/tools/source/generic/color.cxx
+++ b/tools/source/generic/color.cxx
@@ -255,7 +255,7 @@ SvStream& Color::Read( SvStream& rIStm, bool bNewFormat )
return rIStm;
}
-SvStream& Color::Write( SvStream& rOStm, bool bNewFormat )
+SvStream& Color::Write( SvStream& rOStm, bool bNewFormat ) const
{
if ( bNewFormat )
rOStm.WriteUInt32( mnColor );