On Tue, Dec 05, 2006 at 12:57:02PM -0000, [EMAIL PROTECTED] wrote:
> -             if (!fs::exists(orig_from)) {
> +             if (!fs::exists(orig_from_name.toFilesystemEncoding())) {

> +     FileName const filename(fname);
> +     if (fs::exists(filename.toFilesystemEncoding())) {

> +     FileName const document_path(lyxrc.document_path);
> +     if (fs::exists(document_path.toFilesystemEncoding()) &&

Couldn't we introduce some convenience functions here?

                if (orig_from_name.exists())) {

Andre'

Reply via email to