sw/source/uibase/uno/unotxdoc.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit e3b0bae416b22f6dbf0a63efb645dadf75763a9c
Author: Miklos Vajna <vmik...@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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to