diff dwt/graphics/TextLayout.d @ 81:e10cbfc977d2

switch default cases
author Frank Benoit <benoit@tionex.de>
date Wed, 06 Feb 2008 15:12:11 +0100
parents 1801ddeb8f32
children f8001bf383d2
line wrap: on
line diff
--- a/dwt/graphics/TextLayout.d	Wed Feb 06 12:09:44 2008 +0100
+++ b/dwt/graphics/TextLayout.d	Wed Feb 06 15:12:11 2008 +0100
@@ -296,6 +296,7 @@
                     }
                     break;
                 }
+                default:
             }
         }
         if (wrapWidth !is -1 && lineWidth + run.width > wrapWidth && !run.tab) {
@@ -813,6 +814,7 @@
                                 case OS.PT_MOVETO: newType = Gdip.PathPointTypeStart; break;
                                 case OS.PT_LINETO: newType = Gdip.PathPointTypeLine; break;
                                 case OS.PT_BEZIERTO: newType = Gdip.PathPointTypeBezier; break;
+                                default:
                             }
                             if ((type & OS.PT_CLOSEFIGURE) !is 0) newType |= Gdip.PathPointTypeCloseSubpath;
                             types[typeIndex] = cast(byte)newType;
@@ -849,6 +851,7 @@
                             case Gdip.TextRenderingHintAntiAlias:
                             case Gdip.TextRenderingHintAntiAliasGridFit:
                             case Gdip.TextRenderingHintClearTypeGridFit: textAntialias = Gdip.SmoothingModeAntiAlias; break;
+                            default:
                         }
                         Gdip.Graphics_SetSmoothingMode(gdipGraphics, textAntialias);
                         int gstate2 = 0;
@@ -1279,6 +1282,7 @@
             switch (alignment) {
                 case DWT.CENTER: lineIndent += (wrapWidth - lineWidth) / 2; break;
                 case DWT.RIGHT: lineIndent += wrapWidth - lineWidth; break;
+                default:
             }
         }
     }
@@ -1535,6 +1539,7 @@
                         }
                         break;
                     }
+                    default:
                 }
                 offset = validadeOffset(offset, step);
             }