mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Fixing the same problem again. . . actual mechanism was slightly
different than I expected.
This commit is contained in:
+2
-1
@@ -2736,7 +2736,8 @@ DBCellWrite(cellDef, fileName)
|
||||
/* surprises can occur after saving a file as a different */
|
||||
/* filename. */
|
||||
|
||||
StrDup(&cellDef->cd_file, fileName);
|
||||
if (fileName != cellDef->cd_file)
|
||||
StrDup(&cellDef->cd_file, fileName);
|
||||
|
||||
/* The cd_file should not have the .mag suffix, but make sure */
|
||||
/* it doesn't before adding one. */
|
||||
|
||||
Reference in New Issue
Block a user