Source
300
300
}
301
301
302
302
303
303
}
304
304
305
305
}
306
306
307
307
void ImageSlice::updatePositionInformation(const QVector<String>& info ) {
308
308
int segmentCount = segments.size();
309
309
// int infoCount = info.size();
310
-
Assert( segmentCount = infoCount - 1 );
310
+
// Assert( segmentCount = infoCount - 1 );
311
+
// FIXME? shouldn't this be ==, not =?
312
+
Assert( segmentCount = info.size() - 1 );
311
313
for ( int i = 0; i< segmentCount; i++ ) {
312
314
segments[i]->updateEnds( info[i], info[i+1]);
313
315
}
314
316
}
315
317
316
318
void ImageSlice::updatePolyLine( const QList<int>& pixelX,
317
319
const QList<int>& pixelY, const QList<double>& worldX,
318
320
const QList<double>& worldY) {
319
321
sliceWorker->setVertices( pixelX, pixelY, worldX, worldY );
320
322