summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/filter/ww8/rtfexport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfexport.cxx b/sw/source/filter/ww8/rtfexport.cxx
index a711ec8b0efe..b70b9bee4c8b 100644
--- a/sw/source/filter/ww8/rtfexport.cxx
+++ b/sw/source/filter/ww8/rtfexport.cxx
@@ -1178,7 +1178,7 @@ SwRTFWriter::SwRTFWriter( const OUString& rFltName, const OUString & rBaseURL )
SAL_INFO("sw.rtf", OSL_THIS_FUNC);
SetBaseURL( rBaseURL );
// export outline nodes, only (send outline to clipboard/presentation)
- m_bOutOutlineOnly = 'O' == rFltName[0];
+ m_bOutOutlineOnly = (!rFltName.isEmpty() && 'O' == rFltName[0]);
}
SwRTFWriter::~SwRTFWriter()