> > Roland Clobus wrote: > > ... > > In the > > code (Converter.cpp) I found "$$p" which was declared but not in use. > > This patch places the path to the current LyX file in $$p, which can > > be used by the converter to reach the images.
> Pavel Sanda wrote: > you are right, that there is a bug that $$p is not used. however this > patch > looks suspicious from the first sight, as $$i is stuffed from infile2 > while > your $$p is stuffed from orig_from. according to the doc $$p should > originate > from the path of $$i. A small test: from_file contains: lyxtempdir()/filename.lyx to_file contains: lyxtempdir()/filename.converted_extension orig_from contains: savedlocation()/filename.lyx (lyxtempdir is somewhere in $TMP) These are the only Filenames that are passed to the function Converters::convert. So orig_from is the only parameter that contains the information I need. Regards, Roland Clobus