sw/source/uibase/docvw/edtwin.cxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
New commits: commit 97551d819fc62d54c0bbeda74730748e17a5afbf Author: Tamás Zolnai <tamas.zol...@collabora.com> AuthorDate: Sat Mar 2 10:22:54 2019 +0100 Commit: Tamás Zolnai <tamas.zol...@collabora.com> CommitDate: Sun Mar 10 00:06:43 2019 +0100 MSForms: Open Control Properties dialog by double click for drop-down field Change-Id: I66c0a7bad63d929ae346afe9d328d87dfa2c24ae Reviewed-on: https://gerrit.libreoffice.org/68962 Tested-by: Jenkins Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com> diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 85d24b1d61c5..6ee65c5fdd7d 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -3364,6 +3364,21 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt) // table. rSh.SelTableBox(); } + + SwContentAtPos aContentAtPos(IsAttrAtPos::FormControl); + if( rSh.GetContentAtPos( aDocPos, aContentAtPos ) && + aContentAtPos.aFnd.pFieldmark != nullptr) + { + IFieldmark *pFieldBM = const_cast< IFieldmark* > ( aContentAtPos.aFnd.pFieldmark ); + if ( pFieldBM->GetFieldname( ) == ODF_FORMDROPDOWN ) + { + RstMBDownFlags(); + rSh.getIDocumentMarkAccess()->ClearFieldActivation(); + GetView().GetViewFrame()->GetBindings().Execute(SID_FM_CTL_PROPERTIES); + return; + } + } + g_bHoldSelection = true; return; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits