Miscellaneous fixes

This commit is contained in:
jrheinlaender
2013-05-10 20:56:35 +04:30
committed by Stefan Tröger
parent 3b95517a70
commit 6915d8b734
5 changed files with 8 additions and 6 deletions

View File

@@ -155,7 +155,7 @@ void ViewProviderDatumPlane::updateData(const App::Property* prop)
m /= points.size();
// Sort by angles
double a[points.size()];
std::vector<double> a(points.size());
for (int i = 0; i < points.size() - 1; i++) {
if (longest == 0)
a[i] = atan2(points[i].z - m.z, points[i].y - m.y);