summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-03-09 20:30:56 +0100
committerMichael Stahl <mstahl@redhat.com>2012-03-09 20:35:39 +0100
commit87279e0e812bac7f2c17f2758a39bcfd942214af (patch)
tree1e30ab452b54d44491c6fdae76c62dcfb0a468c0 /sw
parent7dafa7a3b14441c6a27ab051db01f53e2c434f0a (diff)
fdo#45962: fix context menu key yanking cursor out of header/footer
For the "context menu" key VCL synthesizes a cursor position that is the center of the window, hence likely to be in the document body. When SwEditWin::Command calls lcl_CheckHeaderFooterClick, it then moves the document view cursor; prevent that by only calling that for actual mouse events. (regression from a6176612ff1a6a142a68964b2c0834d28125fc45)
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/docvw/edtwin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 26137796d908..bb2dabad32ae 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -4733,7 +4733,7 @@ void SwEditWin::Command( const CommandEvent& rCEvt )
if (rView.GetPostItMgr()->IsHit(rCEvt.GetMousePosPixel()))
return;
- if ( lcl_CheckHeaderFooterClick( rSh,
+ if (rCEvt.IsMouseEvent() && lcl_CheckHeaderFooterClick( rSh,
PixelToLogic( rCEvt.GetMousePosPixel() ), 1 ) )
return;