diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-27 12:21:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-27 14:45:02 +0100 |
commit | 3bc69b1d0d8620afd89a993b5f6bc46a2ff5267f (patch) | |
tree | 3b2782fbc31807559d3e0e5ea4790cd07294ba2a /include/editeng/colritem.hxx | |
parent | vcldemo: quit popup on mouse click. (diff) | |
download | core-3bc69b1d0d8620afd89a993b5f6bc46a2ff5267f.tar.gz core-3bc69b1d0d8620afd89a993b5f6bc46a2ff5267f.zip |
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
Diffstat (limited to 'include/editeng/colritem.hxx')
-rw-r--r-- | include/editeng/colritem.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/editeng/colritem.hxx b/include/editeng/colritem.hxx index 3ee4c355cd53..106d86299b6d 100644 --- a/include/editeng/colritem.hxx +++ b/include/editeng/colritem.hxx @@ -82,6 +82,7 @@ class EDITENG_DLLPUBLIC SvxBackgroundColorItem : public SvxColorItem SvxBackgroundColorItem(const SvxBackgroundColorItem& rCopy); virtual SfxPoolItem* Clone(SfxItemPool* pPool = 0) const SAL_OVERRIDE; + virtual SvStream& Store(SvStream& rStream, sal_uInt16 nVersion) const SAL_OVERRIDE; virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const SAL_OVERRIDE; virtual bool QueryValue(css::uno::Any& rVal, sal_uInt8 nMemberId = 0) const SAL_OVERRIDE; virtual bool PutValue(const css::uno::Any& rVal, sal_uInt8 nMemberId) SAL_OVERRIDE; |