From 2f8a71056b10fb539d39f4dc31297236fc4b6564 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Tue, 12 May 2009 20:12:04 +0000 Subject: [PATCH] Fix the assert on Windows when starting LyX by double-clicking on a file. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29646 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/FileName.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index bb99d1788f..0684c20a54 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -105,7 +105,7 @@ struct FileName::Private Private(string const & abs_filename) : fi(toqstr(abs_filename)) { - name = abs_filename; + name = fromqstr(fi.absoluteFilePath()); fi.setCaching(fi.exists() ? true : false); } /// -- 2.39.2