|author||Miklos Vajna <firstname.lastname@example.org>||2016-09-13 10:06:52 +0200|
|committer||Miklos Vajna <email@example.com>||2016-09-14 10:10:31 +0200|
sw: emit LOK_CALLBACK_GRAPHIC_VIEW_SELECTION as part of registerCallback()
Have a Writer shape selection in the first view, create a new view, the second view doesn't see the selection. But the same works if the shape selection is created when the second view was created earlier. Emit the svx selection state as part of SwCursorShell::NotifyCursor() to fix the problem, but take care of not sending the status to the new view itself. Reviewed-on: https://gerrit.libreoffice.org/28857 Reviewed-by: Miklos Vajna <firstname.lastname@example.org> Tested-by: Jenkins <email@example.com> (cherry picked from commit 786cc8a5a3cd34329c72b867e5fd7896b10a7351) Conflicts: sw/source/core/crsr/crsrsh.cxx Change-Id: Iff3979235e1c12cc64867c3184354967f451370b
Diffstat (limited to 'sw/qa/extras/tiledrendering/tiledrendering.cxx')
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/qa/extras/tiledrendering/tiledrendering.cxx b/sw/qa/extras/tiledrendering/tiledrendering.cxx
index 048ade6c634b..ada126f2723c 100644
@@ -1304,10 +1304,14 @@ void SwTiledRenderingTest::testCreateViewGraphicSelection()
// Make sure that the hidden text cursor isn't visible in the second view, either.
aView2.m_bViewCursorVisible = true;
+ aView2.m_bGraphicViewSelection = false;
// This was true, the second view didn't get the visibility of the text
// cursor of the first view.
+ // This was false, the second view didn't get the graphic selection of the
+ // first view.