[Libreoffice-commits] .: filter/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Oct 10 05:03:53 PDT 2012
filter/source/svg/svgwriter.cxx | 61 ++++++++++++++++++++--------------------
1 file changed, 32 insertions(+), 29 deletions(-)
New commits:
commit bd4727567414d469896d7aaf7ee9a823c987e3d1
Author: Michael Stahl <mstahl at redhat.com>
Date: Wed Oct 10 13:46:55 2012 +0200
SVGActionWriter::ImplWriteActions: indent that
Change-Id: I6ae6d96f88df813172017bafe1dd883c7b871c9e
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index c80532b..2e7316b 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -2931,40 +2931,43 @@ void SVGActionWriter::ImplWriteActions( const GDIMetaFile& rMtf,
{
try
{
-
- SvXMLElementExport aElem( mrExport, XML_NAMESPACE_NONE, "desc", sal_False, sal_False );
- OUStringBuffer sType;
- sType.append(static_cast<sal_Int32>(nType));
- if( pAction && ( nType == META_COMMENT_ACTION ) )
- {
- sType.append(": ");
- const MetaCommentAction* pA = (const MetaCommentAction*) pAction;
- rtl::OString sComment = pA->GetComment();
- if( !sComment.isEmpty() )
- {
- OUString ssComment = OUString( sComment.getStr(), sComment.getLength(), RTL_TEXTENCODING_UTF8 );
- sType.append(ssComment);
- }
- if( sComment.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("FIELD_SEQ_BEGIN")) )
- {
- sal_uInt8 const*const pData = pA->GetData();
- if( pData && ( pA->GetDataSize() ) )
+ SvXMLElementExport aElem( mrExport,
+ XML_NAMESPACE_NONE, "desc", sal_False, sal_False );
+ OUStringBuffer sType;
+ sType.append(static_cast<sal_Int32>(nType));
+ if (pAction && (nType == META_COMMENT_ACTION))
+ {
+ sType.append(": ");
+ const MetaCommentAction* pA = (const MetaCommentAction*) pAction;
+ rtl::OString sComment = pA->GetComment();
+ if (!sComment.isEmpty())
+ {
+ OUString ssComment = OUString( sComment.getStr(),
+ sComment.getLength(), RTL_TEXTENCODING_UTF8 );
+ sType.append(ssComment);
+ }
+ if (sComment.equalsIgnoreAsciiCaseL(
+ RTL_CONSTASCII_STRINGPARAM("FIELD_SEQ_BEGIN")))
{
- sal_uInt16 sz = (sal_uInt16)( ( pA->GetDataSize() ) / 2 );
- if( sz )
+ sal_uInt8 const*const pData = pA->GetData();
+ if (pData && (pA->GetDataSize()))
{
- sType.append("; ");
- sType.append(
- reinterpret_cast<sal_Unicode const*>(pData),
- sz);
+ sal_uInt16 sz = (sal_uInt16)((pA->GetDataSize()) / 2);
+ if (sz)
+ {
+ sType.append("; ");
+ sType.append(
+ reinterpret_cast<sal_Unicode const*>(pData),
+ sz);
+ }
}
}
}
- }
- if (sType.getLength())
- {
- mrExport.GetDocHandler()->characters(sType.makeStringAndClear());
- }
+ if (sType.getLength())
+ {
+ mrExport.GetDocHandler()->characters(
+ sType.makeStringAndClear());
+ }
}
catch( ... )
{
More information about the Libreoffice-commits
mailing list