diff options
-rw-r--r-- | svtools/qa/unit/svtools-dialogs-test.cxx | 2 | ||||
-rw-r--r-- | svtools/source/uitest/uiobject.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svtools/qa/unit/svtools-dialogs-test.cxx b/svtools/qa/unit/svtools-dialogs-test.cxx index 897455b2ff23..f710217ea7fd 100644 --- a/svtools/qa/unit/svtools-dialogs-test.cxx +++ b/svtools/qa/unit/svtools-dialogs-test.cxx @@ -81,7 +81,7 @@ void SvtoolsDialogsTest::testValueSetControl() CPPUNIT_ASSERT(pUIObject); StringMap aMap; - aMap["ID"] = "300"; + aMap["POS"] = "300"; pUIObject->execute("SELECT", aMap); } 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); |