From c43393135a6cd0f748433fc39ff45938b82e0464 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Mon, 21 Sep 2020 11:16:35 +0200 Subject: Allow to save file if chart editing is active MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This helps in online where autosave after user closed view with chart editing active caused document to be broken and not allowing to open again. Change-Id: Iab6a9bfe2c5f67c155ee97726e752c83fc47af5f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103091 Tested-by: Jenkins CollaboraOffice Reviewed-by: Andras Timar Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104011 Tested-by: Jenkins Reviewed-by: Szymon Kłos --- desktop/source/lib/init.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index e3c4d8ae7d2f..0d94f67cea11 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3972,7 +3972,7 @@ static void doc_postUnoCommand(LibreOfficeKitDocument* pThis, const char* pComma bool bResult = false; LokChartHelper aChartHelper(SfxViewShell::Current()); - if (aChartHelper.GetWindow() ) + if (aChartHelper.GetWindow() && aCommand != ".uno:Save" ) { util::URL aCommandURL; aCommandURL.Path = aCommand.copy(5); -- cgit