diff options
author | David Tardon <dtardon@redhat.com> | 2013-01-17 15:01:32 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-01-22 13:37:25 +0100 |
commit | 24578b804007d8c3201e5ed32b8485e1725c33c1 (patch) | |
tree | 5dc63f40c71a5aa45a45f076d3b36bc2f4f04590 /sd/source/core/stlsheet.cxx | |
parent | 34add900d03aa1ac194152f9f96d5b8b852a1175 (diff) |
rhbz#760765 copy custom styles on copy & paste
Change-Id: Icaacf3bc1a02a017692432aec36aba06d3f5dde5
Diffstat (limited to 'sd/source/core/stlsheet.cxx')
-rw-r--r-- | sd/source/core/stlsheet.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx index ecd84d74b302..f0137390efc5 100644 --- a/sd/source/core/stlsheet.cxx +++ b/sd/source/core/stlsheet.cxx @@ -35,6 +35,7 @@ #include <svl/smplhint.hxx> #include <svl/itemset.hxx> +#include <svx/sdr/properties/attributeproperties.hxx> #include <svx/xflbmtit.hxx> #include <svx/xflbstit.hxx> #include <editeng/bulitem.hxx> @@ -349,13 +350,16 @@ bool SdStyleSheet::IsUsed() const continue; // NULL-Pointer ist im Listener-Array erlaubt - if (pListener && pListener->ISA(SdrAttrObj)) + if (pListener) { - bResult = ((SdrAttrObj*)pListener)->IsInserted(); - } - else if (pListener && pListener->ISA(SfxStyleSheet)) - { - bResult = ((SfxStyleSheet*)pListener)->IsUsed(); + if (pListener->ISA(sdr::properties::AttributeProperties)) + { + bResult = true; + } + else if (pListener->ISA(SfxStyleSheet)) + { + bResult = ((SfxStyleSheet*)pListener)->IsUsed(); + } } if (bResult) break; |