[Libreoffice-commits] core.git: sw/source
Jan Holesovsky
kendy at collabora.com
Thu Jan 19 18:44:48 UTC 2017
sw/source/uibase/uno/unotxdoc.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 882e5625945dbb95e03282899941a56610066003
Author: Jan Holesovsky <kendy at collabora.com>
Date: Thu Jan 19 19:40:58 2017 +0100
Preserve whitespace with tiled rendering.
Online is often used for taking minutes, and during that, people don't have
time to play with the formatting - so it is annoying when autocorrect goes in
the way.
Change-Id: Ia1794c46d3003198764f666951821f693d710653
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 54d186c..df124cf 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -3300,6 +3300,10 @@ void SwXTextDocument::initializeForTiledRendering(const css::uno::Sequence<css::
// disable word auto-completion suggestions, the tooltips are not visible,
// and the editeng-like auto-completion is annoying
SvxAutoCorrCfg::Get().GetAutoCorrect()->GetSwFlags().bAutoCompleteWords = false;
+
+ // don't change the whitespace at the beginning of paragraphs, this is
+ // annoying when taking minutes without further formatting
+ pDocShell->GetWrtShell()->GetAutoFormatFlags()->bAFormatByInpDelSpacesAtSttEnd = false;
}
void SwXTextDocument::postKeyEvent(int nType, int nCharCode, int nKeyCode)
More information about the Libreoffice-commits
mailing list