summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-04-24 18:12:15 +0200
committerJan Holesovsky <kendy@collabora.com>2015-04-24 18:14:41 +0200
commit0ed75ce4e64411c2b94a0a000f2e00ad95b6446e (patch)
tree389bee2a56dcaf333f47817a39d7d58d94f217c8 /sw
parentcb4276278962c2cbd47d0685881fb2460bf31c70 (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
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/pagechg.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx
index 9e0475c5971e..2cfd85b3c6d6 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>
@@ -2038,7 +2039,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