From 13e5f0cdcf8df61276e8aa05920d4e7ba3ae94c1 Mon Sep 17 00:00:00 2001 From: Tamás Zolnai Date: Thu, 7 May 2020 12:08:39 +0200 Subject: lok: MSForms: dont send form field button data with empty text area. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I88d793765b58a3c483aad51d1a0e2e9f0159d5f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93660 Tested-by: Jenkins Reviewed-by: Tamás Zolnai --- sw/source/core/crsr/bookmrk.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sw/source') 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() + "\","; -- cgit v1.2.3