Fix bad typo in undo code that invalidated all image caches on undo.

This commit is contained in:
Antony Riakiotakis
2014-10-16 20:07:44 +02:00
parent 0750e4c4c7
commit ebad51fd0b

View File

@@ -3305,7 +3305,7 @@ static void direct_link_image(FileData *fd, Image *ima)
{
/* for undo system, pointers could be restored */
if (fd->imamap)
ima->cache = newmclipadr(fd, ima->cache);
ima->cache = newimaadr(fd, ima->cache);
else
ima->cache = NULL;