diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2017-11-29 11:09:35 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-12-06 16:47:33 +0100 |
commit | 2246ab1a187a5ca73b35ca700c1db63c9b74054e (patch) | |
tree | bc006b3a0845a700afd4549e1a15161dc3edda09 | |
parent | xmlsecurity: fix loplugin:salcall warnings (diff) | |
download | core-2246ab1a187a5ca73b35ca700c1db63c9b74054e.tar.gz core-2246ab1a187a5ca73b35ca700c1db63c9b74054e.zip |
tdf#113343 Floating charmap window must not have a context menu
Change-Id: I76c567047b0033ae766ab6c5161c96416e478e8e
Reviewed-on: https://gerrit.libreoffice.org/45475
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
Tested-by: Heiko Tietze <tietze.heiko@googlemail.com>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r-- | sfx2/source/control/charwin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/control/charwin.cxx b/sfx2/source/control/charwin.cxx index 7a7ec777f124..8bd37fc67452 100644 --- a/sfx2/source/control/charwin.cxx +++ b/sfx2/source/control/charwin.cxx @@ -53,7 +53,8 @@ void SvxCharView::MouseButtonDown( const MouseEvent& rMEvt ) maMouseClickHdl.Call(this); } - if(rMEvt.IsRight()) + // suppress context menu on floating windows + if (rMEvt.IsRight() && GetSystemWindow()->GetType() != WindowType::FLOATINGWINDOW) { Point aPosition (rMEvt.GetPosPixel()); maPosition = aPosition; |