Kaydet (Commit) 165a53f3 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#60132 Error reading file after inserting comment

Change-Id: Ib2b388c78c8f44a626267c2f8d3975b46ead3bd5
üst af92c600
...@@ -3782,6 +3782,11 @@ void XMLAnnotationImportContext::PrepareField( ...@@ -3782,6 +3782,11 @@ void XMLAnnotationImportContext::PrepareField(
while (xFields->hasMoreElements()) while (xFields->hasMoreElements())
{ {
uno::Reference<beans::XPropertySet> xCurrField(xFields->nextElement(), uno::UNO_QUERY); uno::Reference<beans::XPropertySet> xCurrField(xFields->nextElement(), uno::UNO_QUERY);
uno::Reference<beans::XPropertySetInfo> xPropsInfo(xCurrField->getPropertySetInfo());
if (!xPropsInfo->hasPropertyByName(sPropertyName))
continue;
OUString aFieldName; OUString aFieldName;
xCurrField->getPropertyValue(sPropertyName) >>= aFieldName; xCurrField->getPropertyValue(sPropertyName) >>= aFieldName;
if (aFieldName == aName) if (aFieldName == aName)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment