Skip to content

Commit

Permalink
removed code for regression issue on inline text
Browse files Browse the repository at this point in the history
  • Loading branch information
sguan-actuate committed Jul 21, 2014
1 parent cf8e6ae commit d2c0dd4
Showing 1 changed file with 13 additions and 14 deletions.
Expand Up @@ -11,7 +11,6 @@
import org.eclipse.birt.report.engine.layout.pdf.font.FontInfo;
import org.eclipse.birt.report.engine.nLayout.area.IArea;
import org.eclipse.birt.report.engine.nLayout.area.IContainerArea;
import org.eclipse.birt.report.engine.nLayout.area.impl.BlockContainerArea;
import org.eclipse.birt.report.engine.nLayout.area.impl.BlockTextArea;
import org.eclipse.birt.report.engine.nLayout.area.impl.CellArea;
import org.eclipse.birt.report.engine.nLayout.area.impl.ContainerArea;
Expand Down Expand Up @@ -64,19 +63,19 @@ public static boolean isSingleTextControl( IContainerArea container )
if(hasNonEmptyTextArea(container))return true;
else return false;
}
else if(container instanceof BlockContainerArea)
{
Iterator<IArea> iter = container.getChildren( );
while ( iter.hasNext( ) )
{
IArea area = iter.next( );
if ( !(area instanceof LineArea)) {
return false;
}
}
if(hasNonEmptyTextArea(container))return true;
else return false;
}
// else if(container instanceof BlockContainerArea)
// {
// Iterator<IArea> iter = container.getChildren( );
// while ( iter.hasNext( ) )
// {
// IArea area = iter.next( );
// if ( !(area instanceof LineArea)) {
// return false;
// }
// }
// if(hasNonEmptyTextArea(container))return true;
// else return false;
// }
else if(container instanceof LineArea)
{
Iterator<IArea> iter = container.getChildren( );
Expand Down

0 comments on commit d2c0dd4

Please sign in to comment.