[pdfmod] Fix opening files from the command line (BGO#595756)



commit a095e973e05a65be68fa1e8b011efe36b74bc121
Author: Andreu Correa Casablanca <castarco gmail com>
Date:   Wed Oct 7 21:00:50 2009 +0200

    Fix opening files from the command line (BGO#595756)
    
    Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>

 src/PdfMod/Gui/Client.cs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/PdfMod/Gui/Client.cs b/src/PdfMod/Gui/Client.cs
index e165daf..651f057 100644
--- a/src/PdfMod/Gui/Client.cs
+++ b/src/PdfMod/Gui/Client.cs
@@ -248,6 +248,8 @@ namespace PdfMod.Gui
 
                 loading = true;
             }
+            
+            path = System.IO.Path.GetFullPath (path);
 
             Configuration.LastOpenFolder = System.IO.Path.GetDirectoryName (suggestedFilename ?? path);
             status_label.Text = Catalog.GetString ("Loading document...");



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