Kaydet (Commit) f2b1841a authored tarafından Felix Zhang's avatar Felix Zhang Kaydeden (comit) Radek Doulik

n760019: removing problematic code that disrupts numbering level

Change-Id: Idb997e672e4f997ad324bdb5d49ab7dae4a9e9e9
üst 6f37f7f0
...@@ -125,12 +125,6 @@ void TextParagraph::insertAt( ...@@ -125,12 +125,6 @@ void TextParagraph::insertAt(
const OUString sNumberingLevel( CREATE_OUSTRING( "NumberingLevel" ) ); const OUString sNumberingLevel( CREATE_OUSTRING( "NumberingLevel" ) );
xProps->setPropertyValue( sNumberingLevel, Any( static_cast< sal_Int16 >( -1 ) ) ); 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 // FIXME this is causing a lot of dispruption (ie does not work). I wonder what to do -- Hub
// Reference< XTextRange > xEnd( xAt, UNO_QUERY ); // Reference< XTextRange > xEnd( xAt, UNO_QUERY );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment