sw/qa/extras/tiledrendering/tiledrendering.cxx | 3 +++ sw/source/core/crsr/bookmrk.cxx | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-)
New commits: commit c0517c6215c78e65af8b20e8c033a75586a794bd Author: Tamás Zolnai <tamas.zol...@collabora.com> AuthorDate: Mon May 11 13:12:44 2020 +0200 Commit: Tamás Zolnai <tamas.zol...@collabora.com> CommitDate: Mon May 11 16:58:39 2020 +0200 lok: MSForms: send also the placeholder text. Change-Id: I5cce5af22f56079e840707cfffb01785d7a15c6a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93960 Tested-by: Jenkins Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com> diff --git a/sw/qa/extras/tiledrendering/tiledrendering.cxx b/sw/qa/extras/tiledrendering/tiledrendering.cxx index 4d3e49f5643d..487def29974b 100644 --- a/sw/qa/extras/tiledrendering/tiledrendering.cxx +++ b/sw/qa/extras/tiledrendering/tiledrendering.cxx @@ -2603,6 +2603,9 @@ void SwTiledRenderingTest::testDropDownFormFieldButton() OString sSelected = aTree.get_child("params").get_child("selected").get_value<std::string>().c_str(); CPPUNIT_ASSERT_EQUAL(OString("1"), sSelected); + + OString sPlaceholder = aTree.get_child("params").get_child("placeholderText").get_value<std::string>().c_str(); + CPPUNIT_ASSERT_EQUAL(OString("No Item specified"), sPlaceholder); } // Move the cursor back so the button becomes hidden. diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx index c1de5fb2cbaf..583ddaff4a12 100644 --- a/sw/source/core/crsr/bookmrk.cxx +++ b/sw/source/core/crsr/bookmrk.cxx @@ -45,6 +45,7 @@ #include <wrtsh.hxx> #include <rtl/strbuf.hxx> #include <sfx2/lokhelper.hxx> +#include <strings.hrc> using namespace ::sw::mark; using namespace ::com::sun::star; @@ -766,7 +767,10 @@ namespace sw::mark { pSelectedItemIter->second >>= nSelection; } - sPayload.append("\"selected\": \"" + OString::number(nSelection) + "\"}}"); + sPayload.append("\"selected\": \"" + OString::number(nSelection) + "\", "); + + // Placeholder text + sPayload.append("\"placeholderText\": \"" + OUStringToOString(SwResId(STR_DROP_DOWN_EMPTY_LIST), RTL_TEXTENCODING_UTF8) + "\"}}"); } else { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits