Mercurial > projects > dwt-addons
comparison dwtx/draw2d/Label.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 |
---|---|
137 case NORTH: | 137 case NORTH: |
138 case SOUTH: | 138 case SOUTH: |
139 alignOnWidth(textLocation, getSubStringTextSize(), textAlignment); | 139 alignOnWidth(textLocation, getSubStringTextSize(), textAlignment); |
140 alignOnWidth(iconLocation, getIconSize(), iconAlignment); | 140 alignOnWidth(iconLocation, getIconSize(), iconAlignment); |
141 break; | 141 break; |
142 default: | |
142 } | 143 } |
143 } | 144 } |
144 | 145 |
145 /** | 146 /** |
146 * Calculates the size of the Label using the passed Dimension as the size of the Label's | 147 * Calculates the size of the Label using the passed Dimension as the size of the Label's |
203 break; | 204 break; |
204 case NORTH: | 205 case NORTH: |
205 case SOUTH: | 206 case SOUTH: |
206 offset.width = 0; | 207 offset.width = 0; |
207 break; | 208 break; |
209 default: | |
208 } | 210 } |
209 | 211 |
210 textLocation.translate(offset); | 212 textLocation.translate(offset); |
211 iconLocation.translate(offset); | 213 iconLocation.translate(offset); |
212 } | 214 } |
231 iconLocation.y = getTextSize().height + gap + insets.top; | 233 iconLocation.y = getTextSize().height + gap + insets.top; |
232 break; | 234 break; |
233 case SOUTH: | 235 case SOUTH: |
234 textLocation.y = getIconSize().height + gap + insets.top; | 236 textLocation.y = getIconSize().height + gap + insets.top; |
235 iconLocation.y = insets.top; | 237 iconLocation.y = insets.top; |
238 default: | |
236 } | 239 } |
237 } | 240 } |
238 | 241 |
239 /** | 242 /** |
240 * Calculates the size of the Label's text size. The text size calculated takes into | 243 * Calculates the size of the Label's text size. The text size calculated takes into |