mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 06:07:34 +02:00
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:
@@ -2363,7 +2363,10 @@ DBCellWriteFile(cellDef, f)
|
|||||||
* plane being searched.
|
* plane being searched.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (cellDef->cd_file)
|
||||||
arg.wa_name = 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++)
|
||||||
|
|||||||
Reference in New Issue
Block a user