summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2020-05-07 12:08:39 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2020-05-08 22:43:27 +0200
commit13e5f0cdcf8df61276e8aa05920d4e7ba3ae94c1 (patch)
tree6b91a1bdca4b0d7558cc0feff3183f6676e357a0 /sw/source
parent36508d0110248f6683757602cd1668547dbfb253 (diff)
lok: MSForms: dont send form field button data with empty text area.
Change-Id: I88d793765b58a3c483aad51d1a0e2e9f0159d5f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93660 Tested-by: Jenkins Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/crsr/bookmrk.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx
index 6695d8a0aae6..38b96d053237 100644
--- a/sw/source/core/crsr/bookmrk.cxx
+++ b/sw/source/core/crsr/bookmrk.cxx
@@ -726,6 +726,9 @@ namespace sw::mark
OStringBuffer sPayload;
if (sAction == "show")
{
+ if(m_aPortionPaintArea.IsEmpty())
+ return;
+
sPayload = OStringLiteral("{\"action\": \"show\","
" \"type\": \"drop-down\", \"textArea\": \"") +
m_aPortionPaintArea.SVRect().toString() + "\",";