diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2014-10-18 15:27:48 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2014-10-18 15:27:48 +0000 |
| commit | 38a67262b8e31eacf724815cc89083bf8a0f6637 (patch) | |
| tree | 627e9bdd8fa702bb16a4c8b5b42061e422c3257d /src/transf_mat_3x4.cpp | |
| parent | noop: remove cruft from powerstrokepointarray.cpp (diff) | |
| download | inkscape-38a67262b8e31eacf724815cc89083bf8a0f6637.tar.gz inkscape-38a67262b8e31eacf724815cc89083bf8a0f6637.zip | |
fix missing variable initialization (3D box tool)
(bzr r13625)
Diffstat (limited to '')
| -rw-r--r-- | src/transf_mat_3x4.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/transf_mat_3x4.cpp b/src/transf_mat_3x4.cpp index 20eee658c..05d0e9d6d 100644 --- a/src/transf_mat_3x4.cpp +++ b/src/transf_mat_3x4.cpp @@ -62,11 +62,9 @@ TransfMat3x4::image (Pt3 const &point) { Pt3 TransfMat3x4::preimage (Geom::Point const &pt, double coord, Proj::Axis axis) { - double x[4]; - double v[3]; - v[0] = pt[Geom::X]; - v[1] = pt[Geom::Y]; - v[2] = 1.0; + const double init_val = std::numeric_limits<double>::quiet_NaN(); + double x[4] = { init_val, init_val, init_val, init_val }; + double v[3] = { pt[Geom::X], pt[Geom::Y], 1.0 }; int index = (int) axis; SysEq::SolutionKind sol = SysEq::gaussjord_solve<3,4>(tmat, x, v, index, coord, true); |
