Skip to content

Commit 81b4136

Browse files
committed
fixed bug where wrong vector length was used when getting dimnames
1 parent 030fb7f commit 81b4136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EnvironmentWatcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ RC2::EnvironmentWatcher::setDimNames ( RObject& robj, json& jobj )
486486
if (robj.hasAttribute("dimnames")) {
487487
RObject mlist(robj.attr("dimnames"));
488488
json dnames;
489-
for (int i=0; i < LENGTH(robj); i++) {
489+
for (int i=0; i < LENGTH(mlist); i++) {
490490
RObject cl(VECTOR_ELT(mlist, i));
491491
dnames.push_back(rvectorToJsonArray(cl));
492492
}

0 commit comments

Comments
 (0)