summaryrefslogtreecommitdiff
path: root/sw/source/filter/writer
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2002-01-23 15:19:39 +0000
committerjp <jp@openoffice.org>2002-01-23 15:19:39 +0000
commit9dc54969b1449528d860e11c15321f4b37eab9a5 (patch)
tree5988455db9d0d29fd64a48d81a87f777cee51c4d /sw/source/filter/writer
parentd195b93b50b5d5ee01b86e8eff126b33f7dbe740 (diff)
Bug #96872#: CopyLocalFileToINet - look for not existing original filename
Diffstat (limited to 'sw/source/filter/writer')
-rw-r--r--sw/source/filter/writer/writer.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx
index 551df13a7f47..2617b1ae202f 100644
--- a/sw/source/filter/writer/writer.cxx
+++ b/sw/source/filter/writer/writer.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: writer.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: os $ $Date: 2001-09-28 07:50:20 $
+ * last change: $Author: jp $ $Date: 2002-01-23 16:19:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -408,6 +408,9 @@ ULONG Writer::Write( SwPaM& rPam, SvStorage&, const String* )
BOOL Writer::CopyLocalFileToINet( String& rFileNm )
{
+ if( !pOrigFileName ) // can be happen, by example if we
+ return FALSE; // write into the clipboard
+
BOOL bRet = FALSE;
INetURLObject aFileUrl( rFileNm ), aTargetUrl( *pOrigFileName );