@@ -1397,20 +1397,20 @@ namespace {
1397
1397
// associated with nesting-key. Updates to active context are restricted to the
1398
1398
// recursive operation, and do not propagate to subsequent iterations on nested
1399
1399
// values and nesting-key.
1400
+ Context copyActiveContext = activeContext;
1400
1401
1401
1402
// 3)
1402
1403
// If active property has a term definition in active context with a local
1403
1404
// context, initialize property-scoped context to that local context.
1404
- Context copyActiveContext = activeContext;
1405
- std::unique_ptr<json> localPropertyScopedContext = initializePropertyScopedContext (copyActiveContext, activeProperty);
1405
+ std::unique_ptr<json> localPropertyScopedContext = initializePropertyScopedContext (copyActiveContext, &nestingKey);
1406
1406
1407
1407
// 8)
1408
1408
// If property-scoped context is defined, set active context to the result of the
1409
1409
// Context Processing algorithm, passing active context, property-scoped context as
1410
1410
// local context, base URL from the term definition for active property in active
1411
1411
// context and true for override protected.
1412
1412
if (localPropertyScopedContext != nullptr ) {
1413
- copyActiveContext = updateActiveContext (copyActiveContext, activeProperty , localPropertyScopedContext.get ());
1413
+ copyActiveContext = updateActiveContext (copyActiveContext, &nestingKey , localPropertyScopedContext.get ());
1414
1414
}
1415
1415
1416
1416
json localNests = json::object ();
0 commit comments