X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fstructs.h;h=5f694886d5b079843c05ce5db191f8bd8a9c8525;hb=c20f82651fdc4dd26172bcb71a85e6eb29eacd43;hp=c1b33fb2958ee3133aae136199c345df547a0039;hpb=97cfdecd62ced6cb1237a9ac6c7cbce2092fde99;p=architektonas diff --git a/src/structs.h b/src/structs.h index c1b33fb..5f69488 100644 --- a/src/structs.h +++ b/src/structs.h @@ -94,10 +94,10 @@ struct Dimension { Dimension(): type(OTDimension), id(Global::objectID++), selected(false), hovered(false), hitObject(false) { hitPoint[0] = hitPoint[1] = hitPoint[2] = hitPoint[3] = hitPoint[4] = false; } - Dimension(Vector pt1, Vector pt2, DimensionType dt = DTLinear, float th = 1.0, uint32_t c = 0x0000FF, int l = LSSolid): + Dimension(Vector pt1, Vector pt2, DimensionType dt = DTLinear, double offs = 0, float th = 1.0, uint32_t c = 0x0000FF, int l = LSSolid): type(OTDimension), id(Global::objectID++), layer(0), color(c), thickness(th), style(l), selected(false), hovered(false), - hitObject(false), subtype(dt), offset(0) + hitObject(false), subtype(dt), offset(offs) { p[0] = pt1; p[1] = pt2; hitPoint[0] = hitPoint[1] = hitPoint[2] = hitPoint[3] = hitPoint[4] = false; } };