]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCacheItem.cpp
Avoid null pointer dereference
[lyx.git] / src / graphics / GraphicsCacheItem.cpp
index 49132cc33b2df749b6bc3bb5b793862d191e3bb7..397b39810e3f480fae82d4604fafbf28226d0561 100644 (file)
@@ -442,7 +442,7 @@ void CacheItem::Impl::convertToDisplayFormat()
        // Connect a signal to this->imageConverted and pass this signal to
        // the graphics converter so that we can load the modified file
        // on completion of the conversion process.
-       converter_ = make_unique<Converter>(doc_file_, filename,
+       converter_ = lyx::make_unique<Converter>(doc_file_, filename,
                                            to_file_base.absFileName(),
                                            from, to_);
        // Connection is closed at the same time as *this is destroyed.