]> git.lyx.org Git - features.git/commitdiff
Fix dialog handling of Insert Plain Text
authorPavel Sanda <sanda@lyx.org>
Fri, 23 Nov 2007 10:54:19 +0000 (10:54 +0000)
committerPavel Sanda <sanda@lyx.org>
Fri, 23 Nov 2007 10:54:19 +0000 (10:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21737 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index 4bd4a99c242a7eb52520b1e9e9c397598c1d3bef..d1147817429d60bbde77bdb71302af8b0138500b 100644 (file)
@@ -2019,10 +2019,10 @@ docstring BufferView::contentsOfPlaintextFile(string const & f,
                if (result.first == FileDialog::Later)
                        return docstring();
 
-               fname = makeAbsPath(to_utf8(result.second));
-
-               if (fname.empty())
+               if (result.second.empty())
                        return docstring();
+
+               fname = makeAbsPath(to_utf8(result.second));
        }
 
        if (!fname.isReadable()) {