diff options
author | Vladimir Glazunov <vg@openoffice.org> | 2009-11-24 12:30:17 +0100 |
---|---|---|
committer | Vladimir Glazunov <vg@openoffice.org> | 2009-11-24 12:30:17 +0100 |
commit | 7ccefb01c0246603f247d12877e2be9b534f6165 (patch) | |
tree | d3ffee304150b8885412af57b0853a77ce737be9 | |
parent | 3415c114d2aa193052fcc7081d82965f1d9f9e5b (diff) | |
parent | 4d396193118ed504e86ff6b28ec522a4358419c5 (diff) |
CWS-TOOLING: integrate CWS sw33bf01
-rw-r--r-- | oox/source/docprop/docprophandler.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/oox/source/docprop/docprophandler.cxx b/oox/source/docprop/docprophandler.cxx index 185a061acea4..3e5a4830b691 100644 --- a/oox/source/docprop/docprophandler.cxx +++ b/oox/source/docprop/docprophandler.cxx @@ -78,13 +78,15 @@ void OOXMLDocPropHandler::AddCustomProperty( const uno::Any& aAny ) { if ( m_aCustomPropertyName.getLength() ) { - uno::Reference< beans::XPropertyContainer > xUserProps = m_xDocProp->getUserDefinedProperties(); + const uno::Reference< beans::XPropertyContainer > xUserProps = + m_xDocProp->getUserDefinedProperties(); if ( !xUserProps.is() ) throw uno::RuntimeException(); try { - xUserProps->addProperty( m_aCustomPropertyName, beans::PropertyAttribute::TRANSIENT, aAny ); + xUserProps->addProperty( m_aCustomPropertyName, + beans::PropertyAttribute::REMOVEABLE, aAny ); } catch( beans::PropertyExistException& ) { |