fdo#45962: fix context menu key yanking cursor out of header/footer
commite73ae4363b55dd544184be1c938f7103f0e64ee3
authorMichael Stahl <mstahl@redhat.com>
Fri, 9 Mar 2012 19:30:56 +0000 (9 20:30 +0100)
committerMiklos Vajna <vmiklos@suse.cz>
Mon, 12 Mar 2012 08:09:53 +0000 (12 09:09 +0100)
tree92f9278b33c73827e3c90c746e7a604c43d0d168
parent9972f86a01969535139bf5a02ea10714d94b51a3
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)

(cherry picked from commit 87279e0e812bac7f2c17f2758a39bcfd942214af)

Signed-off-by: Miklos Vajna <vmiklos@suse.cz>
sw/source/ui/docvw/edtwin.cxx