summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/unocore/unofield.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index 8902c0ea8c27..9d0b21b2cbc5 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -626,7 +626,7 @@ void SAL_CALL SwXFieldMaster::setPropertyValue(
}
}
- else if (!pType && m_pImpl->m_pDoc && rPropertyName == UNO_NAME_NAME)
+ else if (m_pImpl->m_pDoc && rPropertyName == UNO_NAME_NAME)
{
OUString sTypeName;
rValue >>= sTypeName;
@@ -2782,7 +2782,7 @@ sal_Bool SwXTextFieldMasters::hasByName(const OUString& rName)
if( SwFieldIds::Unknown != nResId )
{
sName = sName.copy(std::min(sTypeName.getLength()+1, sName.getLength()));
- bRet = SwFieldIds::Unknown != nResId && nullptr != GetDoc()->getIDocumentFieldsAccess().GetFieldType(nResId, sName, true);
+ bRet = nullptr != GetDoc()->getIDocumentFieldsAccess().GetFieldType(nResId, sName, true);
}
return bRet;
}