- Try to improve require(lyxdot) detection for insetgraphics

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15458 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Asger Ottar Alstrup 2006-10-21 19:37:53 +00:00
parent 8d8d76a6bf
commit a36aac0510

View File

@ -898,12 +898,8 @@ void InsetGraphics::validate(LaTeXFeatures & features) const
if (features.runparams().nice) {
Buffer const * m_buffer = features.buffer().getMasterBuffer();
string basename =
params().filename.outputFilename(m_buffer->filePath());
basename = removeExtension(basename);
if(params().filename.isZipped())
basename = removeExtension(basename);
if (contains(basename, "."))
string const rel_file = removeExtension(params().filename.relFilename(m_buffer->filePath()));
if (contains(rel_file, "."))
features.require("lyxdot");
}