Kaydet (Commit) 0ed75ce4 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

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
üst cb427627
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment