summaryrefslogtreecommitdiffstats
path: root/src/transf_mat_3x4.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-10-19 05:38:32 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-10-19 05:38:32 +0000
commit0b232a2161194285dcdabb26e3f4c5e69f511324 (patch)
tree28412d90b1e1e5770f996fd893095e8d2ee7b73c /src/transf_mat_3x4.cpp
parentFix LPE Powerstroke unintuitive / unstable / scale-dependent behavior (diff)
parentfix missing variable initialization (3D box tool) (diff)
downloadinkscape-0b232a2161194285dcdabb26e3f4c5e69f511324.tar.gz
inkscape-0b232a2161194285dcdabb26e3f4c5e69f511324.zip
Update to trunk r13625
(bzr r13341.1.280)
Diffstat (limited to 'src/transf_mat_3x4.cpp')
-rw-r--r--src/transf_mat_3x4.cpp8
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);