Commits
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 310 | // Assert( segmentCount = infoCount - 1 ); |
311 311 | // FIXME? shouldn't this be ==, not =? |
312 - | Assert( segmentCount = info.size() - 1 ); |
312 + | Assert( segmentCount == info.size() - 1 ); |
313 313 | for ( int i = 0; i< segmentCount; i++ ) { |
314 314 | segments[i]->updateEnds( info[i], info[i+1]); |
315 315 | } |
316 316 | } |
317 317 | |
318 318 | void ImageSlice::updatePolyLine( const QList<int>& pixelX, |
319 319 | const QList<int>& pixelY, const QList<double>& worldX, |
320 320 | const QList<double>& worldY) { |
321 321 | sliceWorker->setVertices( pixelX, pixelY, worldX, worldY ); |
322 322 | |