Field, FieldType: Remove remaining calls to ModifyNotification
Change-Id: I8a825711f3b1f1085b4da90d4d09e837161329f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105193
Tested-by: Jenkins
Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index f878589..5ac8da9 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -2572,7 +2572,7 @@ void SAL_CALL SwXTextField::update()
default: break;
}
// Text formatting has to be triggered.
m_pImpl->GetFormatField()->ModifyNotification(nullptr, nullptr);
m_pImpl->GetFormatField()->UpdateTextNode(nullptr, nullptr);
}
else
m_pImpl->m_bCallUpdate = true;
diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx
index a761111..42ac135 100644
--- a/sw/source/uibase/fldui/fldmgr.cxx
+++ b/sw/source/uibase/fldui/fldmgr.cxx
@@ -1511,7 +1511,7 @@ bool SwFieldMgr::InsertField(
else if( bPageVar )
static_cast<SwRefPageGetFieldType*>(pCurShell->GetFieldType( 0, SwFieldIds::RefPageGet ))->UpdateFields();
else if( SwFieldTypesEnum::GetRef == rData.m_nTypeId )
pField->GetTyp()->ModifyNotification( nullptr, nullptr );
pField->GetTyp()->UpdateFields();
// delete temporary field
pField.reset();