From 7220d958b392eabc51236a31be549df8fa3007c0 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Wed, 23 Oct 2019 09:26:10 -0400 Subject: lok: svtools: change parameter from "ID" to "POS" in ValueSetUIObject class The ValueSet control has an item list with a pair properties "(pos,id)". The "POS" parameter is the item "ID" not the position in the list and to not modify doc_sendDialogEvent function, let's have same uniform parameter for the action "SELECT". Change-Id: I5ce2cf0433bebcd77954f271c4aa09b0b446c0ab Reviewed-on: https://gerrit.libreoffice.org/81399 Tested-by: Jenkins Reviewed-by: Henry Castro --- svtools/source/uitest/uiobject.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svtools/source') diff --git a/svtools/source/uitest/uiobject.cxx b/svtools/source/uitest/uiobject.cxx index 2b1933a19e21..0e0df658f06a 100644 --- a/svtools/source/uitest/uiobject.cxx +++ b/svtools/source/uitest/uiobject.cxx @@ -27,9 +27,9 @@ void ValueSetUIObject::execute(const OUString& rAction, const StringMap& rParame if (rAction == "SELECT") { - if (rParameters.find("ID") != rParameters.end()) + if (rParameters.find("POS") != rParameters.end()) { - auto aPos = rParameters.find("ID"); + auto aPos = rParameters.find("POS"); OUString aVal = aPos->second; sal_Int32 nPos = aVal.toInt32(); mxValueSet->SelectItem(nPos); -- cgit