Kaydet (Commit) 3f55e14c authored tarafından Mihai Varga's avatar Mihai Varga Kaydeden (comit) Jan Holesovsky

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/17665Reviewed-by: 's avatarJan Holesovsky <kendy@collabora.com>
Tested-by: 's avatarJan Holesovsky <kendy@collabora.com>
üst 1f43dcc7
......@@ -44,6 +44,7 @@
#include <tools/multisel.hxx>
#include <tools/resary.hxx>
#include <toolkit/awt/vclxdevice.hxx>
#include <svtools/miscopt.hxx>
#include <ctype.h>
#include <float.h>
......@@ -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 )
......
......@@ -60,6 +60,7 @@
#include <editeng/unolingu.hxx>
#include <svx/svdpagv.hxx>
#include <svtools/unoimap.hxx>
#include <svtools/miscopt.hxx>
#include <svx/unoshape.hxx>
#include <editeng/unonrule.hxx>
#include <editeng/eeitem.hxx>
......@@ -2401,6 +2402,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)
......
......@@ -136,6 +136,7 @@
#include <swdtflvr.hxx>
#include <svtools/langtab.hxx>
#include <svtools/miscopt.hxx>
#include <map>
#include <set>
#include <vector>
......@@ -3226,6 +3227,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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment