]> Shamusworld >> Repos - architektonas/blobdiff - src/dimension.cpp
Fixes for grid background drawing of arbitrary size.
[architektonas] / src / dimension.cpp
index 021f300ef7ccc613963151cb3070e01b1c0a069b..8b930f05230af7b112af9a4a3e0143f8ab4860b6 100644 (file)
@@ -22,8 +22,7 @@
 Dimension::Dimension(Vector p1, Vector p2, DimensionType dt/*= DTLinear*/ ,Object * p/*= NULL*/):
        Object(p1, p), endpoint(p2),
        dragging(false), draggingHandle1(false), draggingHandle2(false),
-       length(p2.Magnitude()), dimensionType(dt), point1(NULL), point2(NULL),
-       size(0.25)
+       length(p2.Magnitude()), dimensionType(dt), size(0.25), point1(NULL), point2(NULL)
 {
        // We set the size to 1/4 base unit. Could be anything.
        type = OTDimension;
@@ -33,8 +32,7 @@ Dimension::Dimension(Vector p1, Vector p2, DimensionType dt/*= DTLinear*/ ,Objec
 // This is bad, p1 & p2 could be NULL, causing much consternation...
 Dimension::Dimension(Connection p1, Connection p2, DimensionType dt/*= DTLinear*/ , Object * p/*= NULL*/):
        dragging(false), draggingHandle1(false), draggingHandle2(false),
-       length(0), dimensionType(dt), point1(p1), point2(p2),
-       size(0.25)
+       length(0), dimensionType(dt), size(0.25), point1(p1), point2(p2)
 {
        type = OTDimension;
 }