Corrected 'adjust line indent' processing in situations when target line indent is alignment-dependent

This commit is contained in:
Denis Zhdanov
2011-06-20 15:48:42 +04:00
parent f91e55f99b
commit f5580aaff7
@@ -120,9 +120,9 @@ class InitialInfoBuilder {
*/
private AbstractBlockWrapper buildFrom(final Block rootBlock,
final int index,
final CompositeBlockWrapper parent,
WrapImpl currentWrapParent,
final Block parentBlock,
@Nullable final CompositeBlockWrapper parent,
@Nullable WrapImpl currentWrapParent,
@Nullable final Block parentBlock,
boolean rootBlockIsRightBlock
) {
final WrapImpl wrap = (WrapImpl)rootBlock.getWrap();
@@ -325,10 +325,6 @@ class InitialInfoBuilder {
return false;
}
if (!block.isIncomplete()) {
return true;
}
// There is a possible case that particular sub-block has an alignment and we don't want to loose information about it by
// excluding that sub-block from the processing.
List<Block> blocks = block.getSubBlocks();