File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -251,11 +251,13 @@ RecordComponent &RecordComponent::resetDataset(Dataset d)
251251 }
252252 else if (d.dtype != Datatype::UNDEFINED)
253253 {
254+ setDirty (true );
254255 return makeEmpty (std::move (d));
255256 }
256257 else
257258 {
258259 rc.m_dataset = std::move (d);
260+ setDirty (true );
259261 return *this ;
260262 }
261263 }
Original file line number Diff line number Diff line change @@ -776,11 +776,16 @@ inline void BaseRecord<T_elem>::flush(
776776 }
777777
778778 if (!this ->written () && this ->empty () && !this ->datasetDefined ())
779+ {
779780 // Verify upon ScientificDefaults::finalize() that the Record has been
780781 // populated. For now, we will assume that data will come later; ignore
781782 // this Record at the moment.
783+ //
784+ // If any of the properties above will change, the Record will become
785+ // dirty through it.
786+ this ->setDirty (false );
782787 return ;
783-
788+ }
784789 /*
785790 * Defensive programming. Normally, this error should yield as soon as
786791 * possible.
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ BaseRecordComponent &BaseRecordComponent::resetDatatype(Datatype d)
4646 {
4747 rc.m_dataset = Dataset{d, {1 }};
4848 }
49+ setDirty (true );
4950 return *this ;
5051}
5152
You can’t perform that action at this time.
0 commit comments