comparison dwtx/draw2d/GridLayout.d @ 192:c3583c6ec027

Added missing default cases for switch statements
author Frank Benoit <benoit@tionex.de>
date Mon, 03 Nov 2008 22:52:26 +0100
parents 95307ad235d9
children
comparison
equal deleted inserted replaced
191:1ef729510ed6 192:c3583c6ec027
714 + Math.max(0, cellWidth - childWidth); 714 + Math.max(0, cellWidth - childWidth);
715 break; 715 break;
716 case DWT.FILL: 716 case DWT.FILL:
717 childWidth = cellWidth - data.horizontalIndent; 717 childWidth = cellWidth - data.horizontalIndent;
718 break; 718 break;
719 default:
719 } 720 }
720 cellHeight += verticalSpacing * (vSpan - 1); 721 cellHeight += verticalSpacing * (vSpan - 1);
721 int childY = gridY; // + data.verticalIndent; 722 int childY = gridY; // + data.verticalIndent;
722 int childHeight = Math 723 int childHeight = Math
723 .min(data.cacheHeight, cellHeight); 724 .min(data.cacheHeight, cellHeight);
736 break; 737 break;
737 case DWT.FILL: 738 case DWT.FILL:
738 childHeight = cellHeight; // - 739 childHeight = cellHeight; // -
739 // data.verticalIndent; 740 // data.verticalIndent;
740 break; 741 break;
742 default:
741 } 743 }
742 IFigure child = grid[i][j]; 744 IFigure child = grid[i][j];
743 if (child !is null) { 745 if (child !is null) {
744 // following param could be replaced by 746 // following param could be replaced by
745 // Rectangle.SINGLETON 747 // Rectangle.SINGLETON