summaryrefslogtreecommitdiff
path: root/src/dxfdata.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-07-26 14:05:41 (GMT)
committerMarius Kintel <marius@kintel.net>2012-07-26 14:05:41 (GMT)
commit67eeed386cab529da187f4d8a94573df8a6768ae (patch)
tree324e19b3d150674c5ee7b4a831d59e697d61bbee /src/dxfdata.cc
parent12ff22c0770308dd9a4da1211c737999f577a9ee (diff)
bugfix: 3D initializer was used for 2D Vector2d
Diffstat (limited to 'src/dxfdata.cc')
-rw-r--r--src/dxfdata.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dxfdata.cc b/src/dxfdata.cc
index 00b246f..4b542d1 100644
--- a/src/dxfdata.cc
+++ b/src/dxfdata.cc
@@ -238,7 +238,7 @@ DxfData::DxfData(double fn, double fs, double fa,
int n = get_fragments_from_r(r_major, fn, fs, fa);
n = (int)ceil(n * sweep_angle / (2 * M_PI));
// Vector2d p1;
- Vector2d p1;
+ Vector2d p1; p1 << 0,0;
for (int i=0;i<=n;i++) {
double a = (ellipse_start_angle + sweep_angle*i/n);
// Vector2d p2(cos(a)*r_major, sin(a)*r_minor);
contact: Jan Huwald // Impressum