diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-11-18 18:06:05 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-11-18 20:41:30 +0100 |
commit | 392c871cde43e9f5006fecff731628c569f24b10 (patch) | |
tree | f9cea3b64b3d20bebbd667819708a12d5cacf9e2 /sw/source | |
parent | be8eac8bc0d713ba6633fccd29b3a2ec6ee99baa (diff) |
sw: use the proper item SwFormatEditInReadonly
Change-Id: I09f3c5cc9e98639bf2b7c4cb37197cb9fb819c82
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/unocore/unoframe.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx index fe197200e6d5..4b3a8edeb7d3 100644 --- a/sw/source/core/unocore/unoframe.cxx +++ b/sw/source/core/unocore/unoframe.cxx @@ -87,6 +87,7 @@ #include <editeng/brushitem.hxx> #include <editeng/protitem.hxx> #include <fmtornt.hxx> +#include <fmteiro.hxx> #include <fmturl.hxx> #include <editeng/lrspitem.hxx> #include <editeng/ulspitem.hxx> @@ -1007,9 +1008,9 @@ bool SwFrameProperties_Impl::AnyToItemSet(SwDoc *pDoc, SfxItemSet& rSet, SfxItem const ::uno::Any* pEdit; if(GetProperty(RES_EDIT_IN_READONLY, 0, pEdit)) { - SfxBoolItem aBool(RES_EDIT_IN_READONLY); - ((SfxPoolItem&)aBool).PutValue(*pEdit, 0); - rSet.Put(aBool); + SwFormatEditInReadonly item(RES_EDIT_IN_READONLY); + item.PutValue(*pEdit, 0); + rSet.Put(item); } return bRet; } |