sw: start ConvertFrom from the same link update state as SwDocShell::Load

Change-Id: I7f9ad99b1b6daaf49639d62fd83b3603e25a8d1c
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/11114
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 9ee425297d4d6474f3541b04f9e678023c7f0395)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211018
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara
2026-09-17 17:42:01 +02:00
committed by Xisco Fauli
parent 0c73e2d1c6
commit 83740d3d62
+4
View File
@@ -208,6 +208,10 @@ bool SwDocShell::ConvertFrom( SfxMedium& rMedium )
return false; // #129881# return if no reader is found
rtl::Reference<SotStorage> pStg=pRead->getSotStorageRef(); // #i45333# save sot storage ref in case of recursive calls
// Reading a foreign format starts from the same state as reading our own one, so link updates
// are off until the load settles them.
getEmbeddedObjectContainer().setUserAllowsLinkUpdate(false);
m_xDoc->setDocAccTitle(OUString());
if (const auto pFrame1 = SfxViewFrame::GetFirst(this))
{