[Libreoffice-commits] core.git: sw/source
Miklos Vajna
vmiklos at collabora.co.uk
Wed May 27 06:31:43 PDT 2015
sw/source/uibase/uno/unotxdoc.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit e3b0bae416b22f6dbf0a63efb645dadf75763a9c
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Wed May 27 15:16:58 2015 +0200
SwXTextDocument::initializeForTiledRendering: allow having different defaults
SetHardBlank() configures the gray background for non-breaking spaces.
Change-Id: I779503189085cc6537b776deb3d30cb93b316acd
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 21e932e..8c21898 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -3165,6 +3165,11 @@ void SwXTextDocument::initializeForTiledRendering()
return;
pView->SetViewLayout(nColumns, bBookMode, true);
+ // Tiled rendering defaults.
+ SwViewOption aViewOption(*pViewShell->GetViewOptions());
+ aViewOption.SetHardBlank(false);
+ pViewShell->ApplyViewOptions(aViewOption);
+
// Disable map mode, so that it's possible to send mouse event coordinates
// directly in twips.
SwEditWin& rEditWin = pDocShell->GetView()->GetEditWin();
More information about the Libreoffice-commits
mailing list