diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-29 16:53:59 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-29 15:43:32 +0000 |
commit | b32b6c09d190effbe29389a87a80df36007d2e99 (patch) | |
tree | 5bbd0903cbf30cc3bb9004a024c0ae9b3a3b366e /sw/source | |
parent | c3399b0d4084d92879b1354bd05a9b891bd187a6 (diff) |
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 <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/crsr/viscrs.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
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<SwViewShell const *>(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<SwViewShell const *>(m_pCursorShell), m_pCursorShell->GetOut() ); } if( !m_pCursorShell->IsOverwriteCursor() || m_bIsDragCursor || m_pCursorShell->IsSelection() ) |