From a36aac05103543dd07124e51bb31b5de309869ef Mon Sep 17 00:00:00 2001 From: Asger Ottar Alstrup Date: Sat, 21 Oct 2006 19:37:53 +0000 Subject: [PATCH] - 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 --- src/insets/insetgraphics.C | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/insets/insetgraphics.C b/src/insets/insetgraphics.C index 64c519def7..b147d429c5 100644 --- a/src/insets/insetgraphics.C +++ b/src/insets/insetgraphics.C @@ -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"); }