8076325
diff -r 3c24aa9a7810 sfx2/source/doc/guisaveas.cxx
8076325
--- a/sfx2/source/doc/guisaveas.cxx	Sat Jan 23 16:31:03 2010 +0000
8076325
+++ b/sfx2/source/doc/guisaveas.cxx	Sun Jan 24 17:16:37 2010 +0000
8076325
@@ -231,7 +231,7 @@
8076325
 								sal_Bool bSetStandardName,
8076325
 								::rtl::OUString& aSuggestedName,
8076325
                                 sal_Bool bPreselectPassword,
8076325
-								const ::rtl::OUString& aSuggestedDir,
8076325
+								::rtl::OUString& aSuggestedDir,
8076325
 								sal_Int16 nDialog,
8076325
 								const ::rtl::OUString& rStandardDir,
8076325
 								const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rBlackList
8076325
@@ -731,7 +731,7 @@
8076325
 											sal_Bool bSetStandardName,
8076325
 											::rtl::OUString& aSuggestedName,
8076325
                                             sal_Bool bPreselectPassword,
8076325
-											const ::rtl::OUString& aSuggestedDir,
8076325
+											::rtl::OUString& aSuggestedDir,
8076325
 											sal_Int16 nDialog,
8076325
 											const ::rtl::OUString& rStandardDir,
8076325
 											const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rBlackList)
8076325
@@ -927,6 +927,7 @@
8076325
 	INetURLObject aURL( pFileDlg->GetPath() );
8076325
 	// the path should be provided outside since it might be used for further calls to the dialog
8076325
 	aSuggestedName = aURL.GetName( INetURLObject::DECODE_WITH_CHARSET );
8076325
+       aSuggestedDir = pFileDlg->GetDisplayDirectory();
8076325
 
8076325
 	// old filter options should be cleared in case different filter is used
8076325
 
8076325
@@ -1412,10 +1413,8 @@
8076325
         sal_Bool bExit = sal_False;
8076325
         while ( !bExit )
8076325
         {
8076325
+            // in case the dialog is opened a second time the folder should be the same as previously navigated to by the user, not what was handed over by initial parameters
8076325
             bUseFilterOptions = aModelData.OutputFileDialog( nStoreMode, aFilterProps, bSetStandardName, aSuggestedName, bPreselectPassword, aSuggestedDir, nDialog, sStandardDir, aBlackList );
8076325
-
8076325
-			// in case the dialog is opend a second time the folder should be the same as before, not what was handed over by parameters
8076325
-			aSuggestedDir = ::rtl::OUString();
8076325
             if ( nStoreMode == SAVEAS_REQUESTED )
8076325
             {
8076325
                 // in case of saving check filter for possible alien warning