diff dwt/widgets/CoolItem.d @ 143:c41e13089a3c

Fixes #21
author Jacob Carlborg <doob@me.com>
date Fri, 05 Jun 2009 01:25:10 +0200
parents 63a09873578e
children
line wrap: on
line diff
--- a/dwt/widgets/CoolItem.d	Thu Jun 04 23:55:22 2009 +0200
+++ b/dwt/widgets/CoolItem.d	Fri Jun 05 01:25:10 2009 +0200
@@ -106,11 +106,10 @@
  */
 public this (CoolBar parent, int style) {
     super(parent, style);
+    itemBounds = new Rectangle(0, 0, 0, 0);
     this.parent = parent;
     parent.createItem (this, parent.getItemCount());
     calculateChevronTrim ();
-    
-    itemBounds = new Rectangle(0, 0, 0, 0);
 }
 /**
  * Constructs a new instance of this class given its parent
@@ -146,11 +145,10 @@
  */
 public this (CoolBar parent, int style, int index) {
     super(parent, style);
+    itemBounds = new Rectangle(0, 0, 0, 0);
     this.parent = parent;
     parent.createItem (this, index);
     calculateChevronTrim ();
-    
-    itemBounds = new Rectangle(0, 0, 0, 0);
 }
 /**
  * Adds the listener to the collection of listeners that will