Skip to content

Commit 12922ea

Browse files
committed
fix error with : search
1 parent 2a1862c commit 12922ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ofxSvgGroup.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ void Group::_getElementForNameRecursive( vector<string>& aNamesToFind, shared_pt
109109
bool bKeepGoing = false;
110110
std::string nameToFind = aNamesToFind[0];
111111
if( aNamesToFind.size() > 1 ) {
112-
bKeepGoing = (aNamesToFind[0] == "*");
113-
nameToFind = aNamesToFind[1];
112+
if(aNamesToFind[0] == "*") {
113+
bKeepGoing = true;
114+
nameToFind = aNamesToFind[1];
115+
}
114116
}
115117
for( std::size_t i = 0; i < aElements.size(); i++ ) {
116118
bool bFound = false;

0 commit comments

Comments
 (0)