[Libreoffice-commits] core.git: sw/source
Stephan Bergmann
sbergman at redhat.com
Wed Dec 4 08:41:59 PST 2013
sw/source/filter/ww8/rtfexport.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 190c2fa39e18fd129e0efe7371f9ed35ad696a91
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Dec 4 17:41:24 2013 +0100
use OUString::startsWith
Change-Id: I248e2e5802ef2404c49fc7bc4c9f4baa794ccdef
diff --git a/sw/source/filter/ww8/rtfexport.cxx b/sw/source/filter/ww8/rtfexport.cxx
index b70b9be..89539ea 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 = (!rFltName.isEmpty() && 'O' == rFltName[0]);
+ m_bOutOutlineOnly = rFltName.startsWith("O");
}
SwRTFWriter::~SwRTFWriter()
More information about the Libreoffice-commits
mailing list