summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-perspective-envelope.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/live_effects/lpe-perspective-envelope.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/live_effects/lpe-perspective-envelope.cpp b/src/live_effects/lpe-perspective-envelope.cpp
index 6d0cd707f..541055bdb 100644
--- a/src/live_effects/lpe-perspective-envelope.cpp
+++ b/src/live_effects/lpe-perspective-envelope.cpp
@@ -205,8 +205,8 @@ void LPEPerspectiveEnvelope::doEffect(SPCurve *curve)
}
int h = 0;
for(auto & i : solmatrix) {
- for( int j = 0; j < 8; j++ ) {
- gslSolmatrix[h] = i[j];
+ for(double j : i) {
+ gslSolmatrix[h] = j;
h++;
}
}
@@ -221,12 +221,12 @@ void LPEPerspectiveEnvelope::doEffect(SPCurve *curve)
gsl_linalg_LU_solve (&m.matrix, p, &b.vector, x);
h = 0;
for(auto & i : projmatrix) {
- for( int j = 0; j < 3; j++ ) {
+ for(double & j : i) {
if(h==8) {
projmatrix[2][2] = 1.0;
continue;
}
- i[j] = gsl_vector_get(x, h);
+ j = gsl_vector_get(x, h);
h++;
}
}