#include "GraphicsCacheItem.h"
#include "GraphicsCacheItem_pimpl.h"
+#include "frontends/support/LyXImage.h"
#include "graphics/XPM_Renderer.h"
#include "graphics/EPS_Renderer.h"
#include "support/filetools.h"
GraphicsCacheItem_pimpl::~GraphicsCacheItem_pimpl()
{
- if (imageStatus_ == GraphicsCacheItem::Loaded) {
- XFreePixmap(fl_get_display(), pixmap_);
- }
-
+ delete pixmap_;
delete renderer;
}
temp = ChangeExtension(filename, string());
// Add some stuff to have it a unique temp file.
- xpmfile = TmpFileName(string(), temp);
+ xpmfile = lyx::tempName(string(), temp); //TmpFileName(string(), temp);
xpmfile = ChangeExtension(xpmfile, ".xpm");
command += xpmfile;