diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-04-24 18:12:15 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-04-24 18:16:18 +0200 |
commit | ca25cce3b3de967c51ff1fd82733c67e5b8a1104 (patch) | |
tree | e423c39019d6f32cdfd3c18f3b2ad0b2c07bf9e2 | |
parent | 14bf4870120857eca5ae4f6da15899418f6bc9a3 (diff) |
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
-rw-r--r-- | sw/source/core/layout/pagechg.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 <comphelper/lok.hxx> #include <ndole.hxx> #include <svl/itemiter.hxx> #include <fmtfsize.hxx> @@ -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 |