Found a mistake in the original edit for time stamps from two
commits back, and fixed it. Also found that the version was changed between today's first two commits, which it should not have been, so dialed it back.
This commit is contained in:
parent
7f1217596e
commit
22a230edc9
|
|
@ -247,18 +247,29 @@ dbStampFunc(cellDef)
|
||||||
|
|
||||||
if (cellDef->cd_timestamp == timestamp) return 0;
|
if (cellDef->cd_timestamp == timestamp) return 0;
|
||||||
|
|
||||||
/*
|
/* Non-editable cells should not try to update timestamps, as the
|
||||||
* Do not force a non-edit cell or a cell with a fixed timestamp
|
* new timestamp cannot be written back to the file. This is
|
||||||
* to update its timestamp, as it cannot or should not. Just clear
|
* basically a hack solution for the problem that running DRC on
|
||||||
* any flag suggesting that it needs a new timestamp.
|
* all cells causes all cells, including non-editable ones, to be
|
||||||
|
* marked as modified, even if there were no DRC changes in the
|
||||||
|
* cell. It is possible to get into trouble this way by modifying
|
||||||
|
* a cell and then marking it as non-editable
|
||||||
*/
|
*/
|
||||||
if (!(cellDef->cd_flags & (CDNOEDIT | CDFIXEDSTAMP)))
|
|
||||||
|
if (cellDef->cd_flags & CDNOEDIT)
|
||||||
{
|
{
|
||||||
cellDef->cd_flags &= ~CDGETNEWSTAMP;
|
cellDef->cd_flags &= ~CDGETNEWSTAMP;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
cellDef->cd_timestamp = timestamp;
|
/*
|
||||||
|
* Do not force a non-edit cell or a cell with a fixed timestamp
|
||||||
|
* to update its timestamp, as it cannot or should not. Just clear
|
||||||
|
* any flag suggesting that it needs a new timestamp.
|
||||||
|
*/
|
||||||
|
if (!(cellDef->cd_flags & CDFIXEDSTAMP))
|
||||||
|
cellDef->cd_timestamp = timestamp;
|
||||||
|
|
||||||
cellDef->cd_flags &= ~CDGETNEWSTAMP;
|
cellDef->cd_flags &= ~CDGETNEWSTAMP;
|
||||||
|
|
||||||
// printf("Writing new timestamp %d for %s.\n", timestamp, cellDef->cd_name);
|
// printf("Writing new timestamp %d for %s.\n", timestamp, cellDef->cd_name);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue