From b32b6c09d190effbe29389a87a80df36007d2e99 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 29 Sep 2016 16:53:59 +0200 Subject: sw lok: disable pixel alignment of cursor logic values It just makes harder for a client to find out if the cursor of one view is at the same position as the cursor of an other view. Change-Id: Ifaebd1c93c45918c87f3c2c3d12bbb3af949184e Reviewed-on: https://gerrit.libreoffice.org/29393 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- sw/source/core/crsr/viscrs.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sw/source') diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx index 7a886e964c21..696ddc26213d 100644 --- a/sw/source/core/crsr/viscrs.cxx +++ b/sw/source/core/crsr/viscrs.cxx @@ -170,10 +170,14 @@ void SwVisibleCursor::SetPosAndShow(SfxViewShell* pViewShell) } } - if( aRect.Height() ) + if( aRect.Height()) { ::SwCalcPixStatics( m_pCursorShell->GetOut() ); - ::SwAlignRect( aRect, static_cast(m_pCursorShell), m_pCursorShell->GetOut() ); + + // Disable pixel alignment when tiled rendering, so that twip values of + // the cursor don't depend on statics. + if (!comphelper::LibreOfficeKit::isActive()) + ::SwAlignRect( aRect, static_cast(m_pCursorShell), m_pCursorShell->GetOut() ); } if( !m_pCursorShell->IsOverwriteCursor() || m_bIsDragCursor || m_pCursorShell->IsSelection() ) -- cgit