summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uno/unotxdoc.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2017-01-19 19:40:58 +0100
committerJan Holesovsky <kendy@collabora.com>2017-01-19 19:44:13 +0100
commit882e5625945dbb95e03282899941a56610066003 (patch)
tree3ae41eacfd455c537896e27f7823ab5cb4951c3b /sw/source/uibase/uno/unotxdoc.cxx
parent4b429851e54ccc42e5f9acebce67139bc3d5e244 (diff)
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
Diffstat (limited to 'sw/source/uibase/uno/unotxdoc.cxx')
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 54d186c8ce77..df124cf3baf3 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)