From ca25cce3b3de967c51ff1fd82733c67e5b8a1104 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Fri, 24 Apr 2015 18:12:15 +0200 Subject: sw tiled rendering: It is important not to center from the very beginning. Otherwise the value is used for some time, and causes misrenderings. Change-Id: I55f003d5ca353c526f4ad17519795cf6f645d674 --- sw/source/core/layout/pagechg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx index e4a55acb02d5..0ae65cabc848 100644 --- a/sw/source/core/layout/pagechg.cxx +++ b/sw/source/core/layout/pagechg.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include #include #include #include @@ -2036,7 +2037,7 @@ void SwRootFrm::CheckViewLayout( const SwViewOption* pViewOpt, const SwRect* pVi // center page if possible long nSizeDiff = 0; - if (nVisWidth > nCurrentRowWidth && !(GetCurrShell() && GetCurrShell()->isTiledRendering())) + if (nVisWidth > nCurrentRowWidth && !comphelper::LibreOfficeKit::isActive()) nSizeDiff = ( nVisWidth - nCurrentRowWidth ) / 2; // adjust positions of pages in current row -- cgit v1.2.3