From cf5ff506170684dd28c9633cac8ae5331f661893 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Fri, 23 Nov 2007 10:54:19 +0000 Subject: [PATCH] Fix dialog handling of Insert Plain Text git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21737 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 4bd4a99c24..d114781742 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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()) { -- 2.39.2