diff options
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 76c71273f768..5b740f1b6717 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -1382,7 +1382,13 @@ static bool lcl_HasListStyle( const OUString& sStyleName, else { // search list style at parent - xStyle.set( xPropState, UNO_QUERY ); + Reference<XStyle> xParentStyle(xPropState, UNO_QUERY); + if (xStyle == xParentStyle) + { + // error case + return true; + } + xStyle = xParentStyle; } } } |