瀏覽代碼

- STEP: fix bug that caused back references contained in nested aggregates to be not tracked.

Alexander Gessler 12 年之前
父節點
當前提交
cded602950
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/STEPFileReader.cpp

+ 1 - 1
code/STEPFileReader.cpp

@@ -525,7 +525,7 @@ STEP::LazyObject::LazyObject(DB& db, uint64_t id,uint64_t /*line*/, const char*
 				--skip_depth;
 				--skip_depth;
 			}
 			}
 
 
-			if (skip_depth == 1 && *a=='#') {
+			if (skip_depth >= 1 && *a=='#') {
 				const char* tmp;
 				const char* tmp;
 				const int64_t num = static_cast<int64_t>( strtoul10_64(a+1,&tmp) );
 				const int64_t num = static_cast<int64_t>( strtoul10_64(a+1,&tmp) );
 				db.MarkRef(num,id);
 				db.MarkRef(num,id);