diff options
author | Mathias Bauer <mba@openoffice.org> | 2000-12-20 20:28:30 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2000-12-20 20:28:30 +0000 |
commit | a7543e8ee3595e813eb174c20ee7b541aaa78764 (patch) | |
tree | f9aa45c367a9302fe06923e23c864ad08fd3f8f8 /sfx2 | |
parent | ae8e991ee67ae8d635830eaf180e35d35d9d90a0 (diff) |
#81319#: correct adaption of filename when changing format
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 19035097c705..c20d8f0fc6a7 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -2,9 +2,9 @@ * * $RCSfile: objstor.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: ka $ $Date: 2000-12-07 19:16:28 $ + * last change: $Author: mba $ $Date: 2000-12-20 21:28:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1454,7 +1454,8 @@ sal_Bool SfxObjectShell::SaveAs_Impl(sal_Bool bUrl, SfxRequest *pRequest) String aPath( aLastName ); bool bWasAbsolute = FALSE; INetURLObject aObj( SvtPathOptions().GetWorkPath() ); - aObj.RelToAbs( aPath, bWasAbsolute ); + aObj.setFinalSlash(); + aObj = INetURLObject( aObj.RelToAbs( aPath, bWasAbsolute ) ); aObj.SetExtension( pFilt->GetDefaultExtension().Copy(2) ); pDlg->SetPath( aObj.GetMainURL() ); } |