Kaydet (Commit) 2b2e4eea authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Michael Stahl

Resolves: fdo#60132 Error reading file after inserting comment

Change-Id: Ib2b388c78c8f44a626267c2f8d3975b46ead3bd5
(cherry picked from commit 165a53f3)
Reviewed-on: https://gerrit.libreoffice.org/2041Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 0dea073b
...@@ -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