diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-06-19 14:21:25 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-06-19 14:21:25 -0400 |
commit | 0fad728f04a8496a8860ddf976885c5e24f62835 (patch) | |
tree | 4d7a5a6d6031c800077cfe8e7eb0f55052212730 | |
parent | Build fix. (diff) | |
download | core-private/kohei/chart-bugs.tar.gz core-private/kohei/chart-bugs.zip |
Fix illegal memory access.
private/kohei/chart-bugs
Change-Id: I884bc109119212d9a89b761813043c5458b8046d
-rw-r--r-- | xmloff/source/core/xmlexp.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index f61ed6ceac2a..5e6571319d18 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -801,7 +801,6 @@ sal_Bool SAL_CALL SvXMLExport::filter( const uno::Sequence< beans::PropertyValue try { const sal_Int32 nPropCount = aDescriptor.getLength(); - const beans::PropertyValue* pProps = aDescriptor.getConstArray(); const sal_uInt32 nTest = EXPORT_META|EXPORT_STYLES|EXPORT_CONTENT|EXPORT_SETTINGS; @@ -810,6 +809,7 @@ sal_Bool SAL_CALL SvXMLExport::filter( const uno::Sequence< beans::PropertyValue // evaluate descriptor only for flat files and if a base URI // has not been provided already + const beans::PropertyValue* pProps = aDescriptor.getConstArray(); for( sal_Int32 nIndex = 0; nIndex < nPropCount; nIndex++, pProps++ ) { const OUString& rPropName = pProps->Name; @@ -828,6 +828,7 @@ sal_Bool SAL_CALL SvXMLExport::filter( const uno::Sequence< beans::PropertyValue } } + const beans::PropertyValue* pProps = aDescriptor.getConstArray(); for (sal_Int32 nIndex = 0; nIndex < nPropCount; ++nIndex, ++pProps) { const OUString& rPropName = pProps->Name; |