diff options
-rw-r--r-- | writerfilter/source/dmapper/ModelEventListener.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/ModelEventListener.cxx b/writerfilter/source/dmapper/ModelEventListener.cxx index e86aa0195182..a5b2ca56af9e 100644 --- a/writerfilter/source/dmapper/ModelEventListener.cxx +++ b/writerfilter/source/dmapper/ModelEventListener.cxx @@ -83,9 +83,9 @@ void ModelEventListener::notifyEvent( const document::EventObject& rEvent ) thro while(xEnumeration->hasMoreElements()) { uno::Reference<beans::XPropertySet> xPropertySet(xEnumeration->nextElement(), uno::UNO_QUERY); - sal_Int16 nSource; + sal_Int16 nSource = 0; xPropertySet->getPropertyValue(rPropNameSupplier.GetName(PROP_REFERENCE_FIELD_SOURCE)) >>= nSource; - sal_Int16 nPart; + sal_Int16 nPart = 0; xPropertySet->getPropertyValue(rPropNameSupplier.GetName(PROP_REFERENCE_FIELD_PART)) >>= nPart; if (nSource == text::ReferenceFieldSource::BOOKMARK && nPart == text::ReferenceFieldPart::PAGE) ++nIndex; |