Skip to content

Commit 9aaa349

Browse files
committed
logic error in indexing
1 parent 85077ac commit 9aaa349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/state.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ void impl::replaceGraphics() {
13391339
}
13401340
else {
13411341
for (Index s=0; s<idx.size(); s++) {
1342-
if ( m_segm.at(s).use_count()==1 ) {
1342+
if ( m_segm.at(idx(s)).use_count()==1 ) {
13431343
modified = true;
13441344
break;
13451345
}

0 commit comments

Comments
 (0)