Make sure bond has a colour
[jalview.git] / src / MCview / Bond.java
index 5f162b0..281e111 100755 (executable)
@@ -24,8 +24,8 @@ import java.awt.*;
 public class Bond {\r
     float[] start;\r
     float[] end;\r
-    Color startCol;\r
-    Color endCol;\r
+    Color startCol = Color.lightGray;\r
+    Color endCol= Color.lightGray;\r
     public Atom at1;\r
     public Atom at2;\r
 \r
@@ -38,7 +38,7 @@ public class Bond {
         this.at2 = at2;\r
     }\r
 \r
-    public Bond(Bond bond) {\r
+  /*  public Bond(Bond bond) {\r
         this.start = new float[3];\r
 \r
         this.start[0] = bond.start[0];\r
@@ -63,7 +63,7 @@ public class Bond {
         len = (float) (Math.sqrt(len));\r
 \r
         return len;\r
-    }\r
+    }*/\r
 \r
     public void translate(float x, float y, float z) {\r
         start[0] = (start[0] + x);\r