SVN commit 1143780 by khudyakov: Move flags declaration maximally inward M +3 -3 linelistindex.cpp --- trunk/KDE/kdeedu/kstars/kstars/skycomponents/linelistindex.cpp #1143779:1143780 @@ -219,8 +219,6 @@ DrawID drawID = skyMesh()->drawID(); UpdateID updateID = KStarsData::Instance()->updateID(); - bool isVisible, isVisibleLast; - MeshIterator region( skyMesh(), drawBuffer() ); while ( region.hasNext() ) { @@ -238,6 +236,7 @@ if ( lineList->updateID != updateID ) JITupdate( lineList ); + bool isVisibleLast; SkyList* points = lineList->points(); SkyPoint* pLast = points->first(); QPointF oLast = map->toScreen( pLast, true, &isVisibleLast ); @@ -245,8 +244,9 @@ QPointF oThis, oThis2; for ( int j = 1 ; j < points->size() ; j++ ) { SkyPoint* pThis = points->at( j ); + + bool isVisible; oThis2 = oThis = map->toScreen( pThis, true, &isVisible ); - if ( map->onScreen( oThis, oLast) && ! skipAt( lineList, j ) ) { if ( isVisible && isVisibleLast && map->onscreenLine( oLast, oThis ) ) {