summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-02-18 11:31:09 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-02-18 11:31:09 +0100
commit1215efbf616024bc262f94c38038d6de6d960b17 (patch)
tree1aaef3d1c3910b7a529704adc9521203bf5da525
parent99a09427e763a6fd020031e475357a989fc91994 (diff)
Missing ScMergeFlagAttr::Clone
Change-Id: Iaaad0b4130d99bb3aa9edd434a1fc105c59c4c99
-rw-r--r--sc/inc/attrib.hxx2
-rw-r--r--sc/source/core/data/attrib.cxx5
2 files changed, 7 insertions, 0 deletions
diff --git a/sc/inc/attrib.hxx b/sc/inc/attrib.hxx
index cfcff754ab25..0c210f5661a2 100644
--- a/sc/inc/attrib.hxx
+++ b/sc/inc/attrib.hxx
@@ -80,6 +80,8 @@ public:
ScMergeFlagAttr(sal_Int16 nFlags);
virtual ~ScMergeFlagAttr();
+ SfxPoolItem * Clone(SfxItemPool * pPool) const SAL_OVERRIDE;
+
bool IsHorOverlapped() const { return ( GetValue() & SC_MF_HOR ) != 0; }
bool IsVerOverlapped() const { return ( GetValue() & SC_MF_VER ) != 0; }
bool IsOverlapped() const { return ( GetValue() & ( SC_MF_HOR | SC_MF_VER ) ) != 0; }
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx
index c3885dabe1bd..047bd1dc9ea8 100644
--- a/sc/source/core/data/attrib.cxx
+++ b/sc/source/core/data/attrib.cxx
@@ -149,6 +149,11 @@ ScMergeFlagAttr::~ScMergeFlagAttr()
{
}
+SfxPoolItem * ScMergeFlagAttr::Clone(SfxItemPool *) const
+{
+ return new ScMergeFlagAttr(*this);
+}
+
bool ScMergeFlagAttr::HasPivotButton() const
{
return (GetValue() & SC_MF_BUTTON) != 0;