Kaydet (Commit) 8d3c7181 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: don't show main cursor when editing a postit

This is primarily for tiled editing that doesn't know about multiple
cursors, so if both the postit cursor and the main cursor is shown for a
short period of time, then the main one is hidden, then gtktiledviewer
still shows the main one.

OTOH if we can avoid showing the cursor in general just to hide it a bit
later in general, let's not do that.

With this, the "cursor is shown at the comment anchor, not inside the
anchor when clicking on the postit" bug disappears.

Change-Id: I2383292c5f84604dc8b126510b0797b8426920ae
(cherry picked from commit 1c482cb5)
üst ba040aa0
......@@ -66,6 +66,7 @@
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <comphelper/lok.hxx>
#include <comphelper/string.hxx>
#include <PostItMgr.hxx>
using namespace com::sun::star;
using namespace util;
......@@ -1292,6 +1293,15 @@ void SwCrsrShell::Paint(vcl::RenderContext& rRenderContext, const Rectangle &rRe
pAktCrsr->Invalidate( aRect );
}
if (SwPostItMgr* pPostItMgr = GetPostItMgr())
{
// No point in showing the cursor for Writer text when there is an
// active annotation edit.
if (bVis)
bVis = !pPostItMgr->HasActiveSidebarWin();
}
if( m_bSVCrsrVis && bVis ) // also show SV cursor again
m_pVisCrsr->Show();
}
......
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