diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-28 17:16:16 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-28 17:17:25 +0200 |
commit | 7fd1516ed3eeb6523276eabbf9d7f8fcb246e96a (patch) | |
tree | 102c404decdd0b7dcb26be67fb39dd122cf65be4 /sw | |
parent | 41ef50797baf7dbd05ebda647ae591e8ed754987 (diff) |
sw lok: fix one view inserting a comment, other view jumping there as well
Views are expected to be more or less independent. So when one view
inserts a comment, don't emit cursor callbacks in the other views, so
that the other views don't jump to the comment position.
Change-Id: I5e4eadccef971dce2b7c759f3094f6d348d07645
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/PostItMgr.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx index c417b9185fa3..2b8f5eeae3b7 100644 --- a/sw/source/uibase/docvw/PostItMgr.cxx +++ b/sw/source/uibase/docvw/PostItMgr.cxx @@ -731,7 +731,17 @@ void SwPostItMgr::LayoutPostIts() bool bTop = mpEditWin->PixelToLogic(Point(0,(*i)->VirtualPos().Y())).Y() >= (pPage->mPageRect.Top()+aSidebarheight); if ( bBottom && bTop ) { + // When tiled rendering, make sure that only the + // view that has the comment focus emits callbacks, + // so the editing view jumps to the comment, but + // not the others. + bool bTiledPainting = mpView->getTiledPainting(); + if (!bTiledPainting) + // No focus -> disable callbacks. + mpView->setTiledPainting(!(*i)->HasChildPathFocus()); (*i)->ShowNote(); + if (!bTiledPainting) + mpView->setTiledPainting(bTiledPainting); } else { |