diff options
-rw-r--r-- | cui/source/customize/SvxNotebookbarConfigPage.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/customize/SvxNotebookbarConfigPage.cxx b/cui/source/customize/SvxNotebookbarConfigPage.cxx index ff70cc1ee79e..b74353a95758 100644 --- a/cui/source/customize/SvxNotebookbarConfigPage.cxx +++ b/cui/source/customize/SvxNotebookbarConfigPage.cxx @@ -318,10 +318,10 @@ void SvxNotebookbarConfigPage::searchNodeandAttribute(std::vector<NotebookbarEnt if (pNodePtr->type == XML_ELEMENT_NODE) { const char* cNodeName = reinterpret_cast<const char*>(pNodePtr->name); - OUString sNodeName = charToString(cNodeName); - OUString sSecondVal; - if (sNodeName == "object") + if (strcmp(cNodeName, "object") == 0) { + OUString sSecondVal; + xmlChar* UriValue = xmlGetProp(pNodePtr, reinterpret_cast<const xmlChar*>("id")); const char* cUIItemID = reinterpret_cast<const char*>(UriValue); OUString sUIItemId = charToString(cUIItemID); |