summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/ximpshap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/draw/ximpshap.cxx')
-rw-r--r--xmloff/source/draw/ximpshap.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx
index 94ac8532b6c9..8d6be9de1273 100644
--- a/xmloff/source/draw/ximpshap.cxx
+++ b/xmloff/source/draw/ximpshap.cxx
@@ -3831,12 +3831,11 @@ void SdXMLTableShapeContext::startFastElement (sal_Int32 nElement,
}
const XMLPropertyMapEntry* pEntry = &aXMLTableShapeAttributes[0];
- for( int i = 0; pEntry->msApiName && (i < 6); i++, pEntry++ )
+ for( int i = 0; !pEntry->IsEnd() && (i < 6); i++, pEntry++ )
{
try
{
- const OUString sAPIPropertyName( pEntry->msApiName, pEntry->nApiNameLength, RTL_TEXTENCODING_ASCII_US );
- xProps->setPropertyValue( sAPIPropertyName, Any( maTemplateStylesUsed[i] ) );
+ xProps->setPropertyValue( pEntry->getApiName(), Any( maTemplateStylesUsed[i] ) );
}
catch(const Exception&)
{
@@ -3889,7 +3888,7 @@ bool SdXMLTableShapeContext::processAttribute( const sax_fastparser::FastAttribu
{
int i = 0;
const XMLPropertyMapEntry* pEntry = &aXMLTableShapeAttributes[0];
- while( pEntry->msApiName && (i < 6) )
+ while( !pEntry->IsEnd() && (i < 6) )
{
if( (nElement & TOKEN_MASK) == pEntry->meXMLName )
{