summaryrefslogtreecommitdiff
path: root/editeng/inc/editeng/svxrtf.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'editeng/inc/editeng/svxrtf.hxx')
-rw-r--r--editeng/inc/editeng/svxrtf.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/inc/editeng/svxrtf.hxx b/editeng/inc/editeng/svxrtf.hxx
index c74f6c2a2a..c1039f9347 100644
--- a/editeng/inc/editeng/svxrtf.hxx
+++ b/editeng/inc/editeng/svxrtf.hxx
@@ -470,7 +470,7 @@ inline const Color& SvxRTFParser::GetColor( size_t nId ) const
inline SfxItemSet& SvxRTFParser::GetAttrSet()
{
SvxRTFItemStackTypePtr pTmp;
- if( bNewGroup || 0 == ( pTmp = aAttrStack.back()) )
+ if( bNewGroup || 0 == ( pTmp = aAttrStack.empty() ? 0 : aAttrStack.back()) )
pTmp = _GetAttrSet();
return pTmp->aAttrSet;
}