Prechádzať zdrojové kódy

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

Alexander Gessler 12 rokov pred
rodič
commit
cded602950
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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;
 			}
 
-			if (skip_depth == 1 && *a=='#') {
+			if (skip_depth >= 1 && *a=='#') {
 				const char* tmp;
 				const int64_t num = static_cast<int64_t>( strtoul10_64(a+1,&tmp) );
 				db.MarkRef(num,id);