From 72189a2e2d875772e83eb7c110540f224262eec9 Mon Sep 17 00:00:00 2001 From: Mihai Varga Date: Wed, 12 Aug 2015 10:32:07 +0300 Subject: [PATCH 091/398] tdf#93154: Save button often does not save The problem is that in tiled rendering LO doesn't always consider the document to be modified. Some operations such as Bold, Italic, etc do not mark the document as being modified, but we need to be able to save the changes. This solved the issue by always allowing to save. Change-Id: Iaf8120abadc768a07b24f42c287c50080b4e4d89 Reviewed-on: https://gerrit.libreoffice.org/17665 Reviewed-by: Jan Holesovsky Tested-by: Jan Holesovsky (cherry picked from commit e5ba9090f4809906ffa1c1dea352161cb988b97f) --- sc/source/ui/unoobj/docuno.cxx | 4 ++++ sd/source/ui/unoidl/unomodel.cxx | 4 ++++ sw/source/uibase/uno/unotxdoc.cxx | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index e1235b90cb7a..84b2857b6542 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -839,6 +840,9 @@ void ScModelObj::initializeForTiledRendering() aInputOptions.SetTextWysiwyg(true); SC_MOD()->SetInputOptions(aInputOptions); pDocShell->CalcOutputFactor(); + // tdf#93154: in tiled rendering LO doesn't always detect changes + SvtMiscOptions aMiscOpt; + aMiscOpt.SetSaveAlwaysAllowed(true); } uno::Any SAL_CALL ScModelObj::queryInterface( const uno::Type& rType ) diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 4148035c899a..0e88a099e081 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -60,6 +60,7 @@ #include #include #include +#include #include #include #include @@ -2388,6 +2389,9 @@ void SdXImpressDocument::initializeForTiledRendering() pWindow->EnableMapMode(false); } } + // tdf#93154: in tiled rendering LO doesn't always detect changes + SvtMiscOptions aMiscOpt; + aMiscOpt.SetSaveAlwaysAllowed(true); } void SdXImpressDocument::registerCallback(LibreOfficeKitCallback pCallback, void* pData) diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 0dbde54f9144..d6315d2964ae 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -136,6 +136,7 @@ #include #include +#include #include #include #include @@ -3235,6 +3236,9 @@ void SwXTextDocument::initializeForTiledRendering() // directly in twips. SwEditWin& rEditWin = pDocShell->GetView()->GetEditWin(); rEditWin.EnableMapMode(false); + // tdf#93154: in tiled rendering LO doesn't always detect changes + SvtMiscOptions aMiscOpt; + aMiscOpt.SetSaveAlwaysAllowed(true); } void SwXTextDocument::registerCallback(LibreOfficeKitCallback pCallback, void* pData) -- 2.12.0