Kaydet (Commit) 87279e0e authored tarafından Michael Stahl's avatar Michael Stahl

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 a6176612)
üst 7dafa7a3
...@@ -4733,7 +4733,7 @@ void SwEditWin::Command( const CommandEvent& rCEvt ) ...@@ -4733,7 +4733,7 @@ void SwEditWin::Command( const CommandEvent& rCEvt )
if (rView.GetPostItMgr()->IsHit(rCEvt.GetMousePosPixel())) if (rView.GetPostItMgr()->IsHit(rCEvt.GetMousePosPixel()))
return; return;
if ( lcl_CheckHeaderFooterClick( rSh, if (rCEvt.IsMouseEvent() && lcl_CheckHeaderFooterClick( rSh,
PixelToLogic( rCEvt.GetMousePosPixel() ), 1 ) ) PixelToLogic( rCEvt.GetMousePosPixel() ), 1 ) )
return; return;
......
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