diff options
author | Mark Vecsernyes <kurtaazz@gmail.com> | 2017-12-06 14:16:47 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-12-06 22:12:55 +0100 |
commit | 37c719d92b8645aef68925c2dab669a4d1d83e85 (patch) | |
tree | 236b94b7f969ad0a4a15720f9b77a854e79882d1 /sfx2 | |
parent | 5bb95b3d1aef2223fe8c608bf462f22fb7196c6c (diff) |
tdf#114122 - Double click in special character dialog inserts a character
Change-Id: I8f8db851363344091294e2af43aba289ac160d98
Reviewed-on: https://gerrit.libreoffice.org/45952
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/charwin.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sfx2/source/control/charwin.cxx b/sfx2/source/control/charwin.cxx index 8bd37fc67452..9d0f45e4ae62 100644 --- a/sfx2/source/control/charwin.cxx +++ b/sfx2/source/control/charwin.cxx @@ -34,6 +34,7 @@ SvxCharView::SvxCharView(vcl::Window* pParent) : Control(pParent, WB_TABSTOP | WB_BORDER) , mnY(0) , maPosition(0,0) + , maHasInsert(true) { } @@ -45,7 +46,7 @@ void SvxCharView::MouseButtonDown( const MouseEvent& rMEvt ) if ( rMEvt.IsLeft() ) { - if ( !(rMEvt.GetClicks() % 2) ) + if ( !(rMEvt.GetClicks() % 2) && maHasInsert ) { InsertCharToDoc(); } @@ -260,3 +261,8 @@ void SvxCharView::SetText( const OUString& rText ) Control::SetText( rText ); Invalidate(); } + +void SvxCharView::SetHasInsert( bool bInsert ) +{ + maHasInsert = bInsert; +} |