mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
- 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:
parent
8d8d76a6bf
commit
a36aac0510
@ -898,12 +898,8 @@ void InsetGraphics::validate(LaTeXFeatures & features) const
|
|||||||
|
|
||||||
if (features.runparams().nice) {
|
if (features.runparams().nice) {
|
||||||
Buffer const * m_buffer = features.buffer().getMasterBuffer();
|
Buffer const * m_buffer = features.buffer().getMasterBuffer();
|
||||||
string basename =
|
string const rel_file = removeExtension(params().filename.relFilename(m_buffer->filePath()));
|
||||||
params().filename.outputFilename(m_buffer->filePath());
|
if (contains(rel_file, "."))
|
||||||
basename = removeExtension(basename);
|
|
||||||
if(params().filename.isZipped())
|
|
||||||
basename = removeExtension(basename);
|
|
||||||
if (contains(basename, "."))
|
|
||||||
features.require("lyxdot");
|
features.require("lyxdot");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user