Resolves: tdf#97879 loop in style hierarchy on odt loop
Change-Id: I0098c434b89b6a57e8b888a4d4f643e4d0865d29
This commit is contained in:
BIN
sw/qa/core/data/odt/pass/tdf97879.odt
Normal file
BIN
sw/qa/core/data/odt/pass/tdf97879.odt
Normal file
Binary file not shown.
@@ -1380,7 +1380,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user