diff doodle/dia/layer_stack.d @ 100:a274d16ab6ce

struct initialisers
author David Bryant <bagnose@gmail.com>
date Mon, 18 Oct 2010 18:10:02 +1030
parents a98116479793
children 10ad5417bf07
line wrap: on
line diff
--- a/doodle/dia/layer_stack.d	Wed Oct 06 13:03:38 2010 +1030
+++ b/doodle/dia/layer_stack.d	Mon Oct 18 18:10:02 2010 +1030
@@ -11,7 +11,7 @@
 
     Rectangle bounds() const {
         // Take the union of all layer bounds
-        Rectangle bounds = Rectangle.DEFAULT;
+        Rectangle bounds;
         foreach (layer; _layers) { bounds = bounds | layer.bounds; }
         return bounds;
     }