Add a Model::row_data_tracked function

Closes #1177
This commit is contained in:
Olivier Goffart 2022-04-19 12:00:28 +02:00 committed by Olivier Goffart
parent f117cb77cc
commit 67e9a59398
3 changed files with 16 additions and 9 deletions

View file

@ -1612,8 +1612,7 @@ fn compile_expression(expr: &Expression, ctx: &EvaluationContext) -> TokenStream
let index_e = compile_expression(index, ctx);
quote!(match &#base_e { x => {
let index = (#index_e) as usize;
x.model_tracker().track_row_data_changes(index);
x.row_data(index).unwrap_or_default()
x.row_data_tracked(index).unwrap_or_default()
}})
}
Expression::CodeBlock(sub) => {