[Libreoffice-commits] .: Branch 'libreoffice-4-0' - wizards/com

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Dec 18 10:15:11 PST 2012


 wizards/com/sun/star/wizards/document/OfficeDocument.py |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 2a1943b15234980d906511ed06fb3e14b3933a00
Author: Xisco Fauli <anistenis at gmail.com>
Date:   Tue Dec 18 19:07:55 2012 +0100

    pywizards: Fix finish in Windows one and for all
    
    Change-Id: I450e2f32a3579778163655b65cd112f952f0456f

diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.py b/wizards/com/sun/star/wizards/document/OfficeDocument.py
index 2e892a4..0891952 100644
--- a/wizards/com/sun/star/wizards/document/OfficeDocument.py
+++ b/wizards/com/sun/star/wizards/document/OfficeDocument.py
@@ -16,9 +16,8 @@
 #   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 #
 import uno
-import os.path
 import traceback
-from unohelper import systemPathToFileUrl
+from unohelper import systemPathToFileUrl, absolutize
 from ..ui.event.CommonListener import TerminateListenerProcAdapter
 from ..common.Desktop import Desktop
 
@@ -210,9 +209,11 @@ class OfficeDocument(object):
             else:
                 oStoreProperties = list(range(0))      
 
+            StorePath = systemPathToFileUrl(StorePath)
+            sPath = StorePath[:(StorePath.rfind("/") + 1)]
+            sFile = StorePath[(StorePath.rfind("/") + 1):]
             xComponent.storeToURL(
-                os.path.abspath(systemPathToFileUrl(StorePath)),
-                tuple(oStoreProperties))
+                absolutize(sPath, sFile), tuple(oStoreProperties))
             return True
         except ErrorCodeIOException:
             #Throw this exception when trying to save a file 


More information about the Libreoffice-commits mailing list