diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-05-27 15:16:58 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-05-27 15:30:56 +0200 |
commit | e3b0bae416b22f6dbf0a63efb645dadf75763a9c (patch) | |
tree | 8767595f3b18b7f4948ae2f295e37449cad25d66 | |
parent | e3c1a394a00cef416a81b89b6d5c204891abb286 (diff) |
SwXTextDocument::initializeForTiledRendering: allow having different defaults
SetHardBlank() configures the gray background for non-breaking spaces.
Change-Id: I779503189085cc6537b776deb3d30cb93b316acd
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 21e932eb5ee0..8c21898740c6 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(); |