summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2002-08-22 12:44:16 +0000
committerMalte Timmermann <mt@openoffice.org>2002-08-22 12:44:16 +0000
commit5e80d4ee5f71435cebdaff8447ba940a427b4f7a (patch)
tree04adb4d3353164211685701acb3733f47082c35c /svtools
parent32ca61742b58d683d4cd2685176775b96c66b60d (diff)
#97709# Maybe URL is already a file URL...
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/filectrl2.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/svtools/source/control/filectrl2.cxx b/svtools/source/control/filectrl2.cxx
index 785505581c1e..ccb9440c1c8f 100644
--- a/svtools/source/control/filectrl2.cxx
+++ b/svtools/source/control/filectrl2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: filectrl2.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: fs $ $Date: 2001-09-04 09:00:26 $
+ * last change: $Author: mt $ $Date: 2002-08-22 13:44:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -110,7 +110,9 @@ void FileControl::ImplBrowseFile( )
{
// transform the system notation text into a file URL
::rtl::OUString sSystemNotation = GetText(), sFileURL;
- osl_getFileURLFromSystemPath( sSystemNotation.pData, &sFileURL.pData );
+ oslFileError nError = osl_getFileURLFromSystemPath( sSystemNotation.pData, &sFileURL.pData );
+ if ( nError == osl_File_E_INVAL )
+ sFileURL = GetText(); // #97709# Maybe URL is already a file URL...
// initially set this directory
xFilePicker->setDisplayDirectory( sFileURL );
@@ -143,6 +145,9 @@ void FileControl::ImplBrowseFile( )
/*************************************************************************
* history:
* $Log: not supported by cvs2svn $
+ * Revision 1.1 2001/09/04 09:00:26 fs
+ * initial checkin - exception enabled parts of filectrl.cxx
+ *
*
* Revision 1.0 03.09.01 17:45:21 fs
************************************************************************/