Fixed a crash condition on saving a backup file if a cellDef's

cd_file entry is NULL, relying on cd_name instead.
This commit is contained in:
Tim Edwards 2018-05-30 22:51:13 -04:00
parent e5f5764871
commit 5e2874a0fa
1 changed files with 4 additions and 1 deletions

View File

@ -2363,7 +2363,10 @@ DBCellWriteFile(cellDef, f)
* plane being searched. * plane being searched.
*/ */
arg.wa_name = cellDef->cd_file; if (cellDef->cd_file)
arg.wa_name = cellDef->cd_file;
else
arg.wa_name = cellDef->cd_name;
arg.wa_file = f; arg.wa_file = f;
arg.wa_reducer = reducer; arg.wa_reducer = reducer;
for (type = TT_PAINTBASE; type < DBNumUserLayers; type++) for (type = TT_PAINTBASE; type < DBNumUserLayers; type++)