[Libreoffice-commits] core.git: sw/source
Tamás Zolnai (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 8 20:53:31 UTC 2020
sw/source/uibase/uno/unotxdoc.cxx | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
New commits:
commit 77a544b63d2713b842049666e9be5cb30e9ce219
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Thu May 7 16:57:45 2020 +0200
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Fri May 8 22:52:50 2020 +0200
lok: MSForms: fix editing of drop-down field.
When cursor is on the left side of the form field.
Change-Id: I8587c477b6177e9309349afbbfc70979b4338275
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93663
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 7c18ed5de296..1fb4ce3713be 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -3393,16 +3393,16 @@ void SwXTextDocument::executeFromFieldEvent(const StringMap& aArguments)
{
--aPos.nContent;
pFieldBM = pDocShell->GetWrtShell()->getIDocumentMarkAccess()->getFieldmarkFor(aPos);
- if (pFieldBM && pFieldBM->GetFieldname() == ODF_FORMDROPDOWN)
+ }
+ if (pFieldBM && pFieldBM->GetFieldname() == ODF_FORMDROPDOWN)
+ {
+ if (nSelection >= 0)
{
- if (nSelection >= 0)
- {
- OUString sKey = ODF_FORMDROPDOWN_RESULT;
- (*pFieldBM->GetParameters())[sKey] <<= nSelection;
- pFieldBM->Invalidate();
- pDocShell->GetWrtShell()->SetModified();
- pDocShell->GetView()->GetEditWin().LogicInvalidate(nullptr);
- }
+ OUString sKey = ODF_FORMDROPDOWN_RESULT;
+ (*pFieldBM->GetParameters())[sKey] <<= nSelection;
+ pFieldBM->Invalidate();
+ pDocShell->GetWrtShell()->SetModified();
+ pDocShell->GetView()->GetEditWin().LogicInvalidate(nullptr);
}
}
}
More information about the Libreoffice-commits
mailing list