n760019: removing problematic code that disrupts numbering level

Change-Id: Idb997e672e4f997ad324bdb5d49ab7dae4a9e9e9
This commit is contained in:
Felix Zhang 2012-06-16 00:00:02 +08:00 committed by Radek Doulik
parent 6f37f7f06b
commit f2b1841ae3

View file

@ -125,12 +125,6 @@ void TextParagraph::insertAt(
const OUString sNumberingLevel( CREATE_OUSTRING( "NumberingLevel" ) );
xProps->setPropertyValue( sNumberingLevel, Any( static_cast< sal_Int16 >( -1 ) ) );
}
else if ( nLevel > 1 )
{
// Even more UGLY HACK
const OUString sNumberingLevel( CREATE_OUSTRING( "NumberingLevel" ) );
xProps->setPropertyValue( sNumberingLevel, Any( static_cast< sal_Int16 >( nLevel-1 ) ) );
}
// FIXME this is causing a lot of dispruption (ie does not work). I wonder what to do -- Hub
// Reference< XTextRange > xEnd( xAt, UNO_QUERY );