[gedit-plugins/gnome-2-32] [synctex] SyncTeX paths are relative to the output file.



commit 01c8eaf95dd7fafa520a9709bec9041f0f21a71d
Author: Jose Aliste <jaliste src gnome org>
Date:   Fri Aug 13 18:34:27 2010 -0400

    [synctex] SyncTeX paths are relative to the output file.

 plugins/synctex/synctex/synctex.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/synctex/synctex/synctex.py b/plugins/synctex/synctex/synctex.py
index 9095c8c..8e68bef 100644
--- a/plugins/synctex/synctex/synctex.py
+++ b/plugins/synctex/synctex/synctex.py
@@ -173,7 +173,7 @@ class SynctexViewHelper:
         if self.gfile.get_basename() == input_file:
             self.goto_line(source_link[0] - 1)
         else:
-            uri_input = self.gfile.get_parent().get_child(input_file).get_uri()
+            uri_input = self.out_gfile.get_parent().get_child(input_file).get_uri()
             view_dict = self._plugin.view_dict
             if uri_input not in view_dict:
                 tab = self._window.create_tab_from_uri(uri_input,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]