Gui: fix SelectionSingleton::checkSelection()

This commit is contained in:
Zheng, Lei
2019-09-02 21:03:23 +08:00
committed by wmayer
parent eb61d2f313
commit 94f6f984e0

View File

@@ -1582,7 +1582,7 @@ int SelectionSingleton::checkSelection(const char *pDocName, const char *pObject
if(!selList)
selList = &_SelList;
for (auto &s : *selList) {
if (s.DocName==pDocName && s.FeatName==pObjectName) {
if (s.DocName==pDocName && s.FeatName==sel.FeatName) {
if(!pSubName || s.SubName==pSubName)
return 1;
if(resolve>1 && boost::starts_with(s.SubName,prefix))