[gedit-latex/gnome-3-0] Fix master document: use relative path
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex/gnome-3-0] Fix master document: use relative path
- Date: Tue, 28 Jun 2011 23:02:00 +0000 (UTC)
commit 3676d1e83b384b801b0794c8332744f92e696417
Author: John Stowers <john stowers gmail com>
Date: Wed Jun 29 10:26:48 2011 +1200
Fix master document: use relative path
latex/latex/editor.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/latex/latex/editor.py b/latex/latex/editor.py
index eaf6d2d..74dbffa 100644
--- a/latex/latex/editor.py
+++ b/latex/latex/editor.py
@@ -360,10 +360,9 @@ class LaTeXEditor(Editor, IIssueHandler, IPreferencesMonitor):
if master_filename:
# relativize the master filename
master_filename = File(master_filename).relativize(self._file.dirname, True)
-
property_file["MasterFilename"] = master_filename
property_file.save()
- return File(master_filename)
+ return File.create_from_relative_path(master_filename, self._file.dirname)
else:
# no master file chosen
return None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]