From 83740d3d6275d86bd9bb9d8218dc2caf19e64f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 30 Jul 2026 23:17:07 +0000 Subject: [PATCH] sw: start ConvertFrom from the same link update state as SwDocShell::Load MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7f9ad99b1b6daaf49639d62fd83b3603e25a8d1c Signed-off-by: Caolán McNamara Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/11114 Reviewed-by: Miklos Vajna Tested-by: Jenkins CPCI (cherry picked from commit 9ee425297d4d6474f3541b04f9e678023c7f0395) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211018 Reviewed-by: Xisco Fauli Tested-by: Jenkins --- sw/source/uibase/app/docsh.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sw/source/uibase/app/docsh.cxx b/sw/source/uibase/app/docsh.cxx index 078500d645b0..611cef415c28 100644 --- a/sw/source/uibase/app/docsh.cxx +++ b/sw/source/uibase/app/docsh.cxx @@ -208,6 +208,10 @@ bool SwDocShell::ConvertFrom( SfxMedium& rMedium ) return false; // #129881# return if no reader is found rtl::Reference 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)) {