}
else
{
- double aTail = 0.0;
+ double aTail = 1.0;
for ( int i = from; i <= to; i++ )
{
double u1 = xMap.transform( x( i ) );
double v1 = yMap.transform( y( i ) );
- if ( (i == from || i == to) && myNbMarkers >= 0 )
+ if ( !mySymbolsColorMap.isEmpty() )
{
- if (!mySymbolsColorMap.isEmpty())
- {
- if ( mySymbolsColorMap.contains( mySymbolsColorIds.at(i) ) )
- p->setBrush( QBrush( mySymbolsColorMap[ mySymbolsColorIds.at(i) ] ) );
- else
- p->setBrush( symbol.brush() );
- }
+ if ( mySymbolsColorMap.contains( mySymbolsColorIds.at(i) ) )
+ p->setBrush( QBrush( mySymbolsColorMap[ mySymbolsColorIds.at(i) ] ) );
+ else
+ p->setBrush( symbol.brush() );
+ }
+ if ( (i == from || i == to) && myNbMarkers >= 0 )
+ {
rect.moveCenter( QPoint( u1, v1 ) );
symbol.draw( p, rect );
}
-
- if ( i > from && myNbMarkers > 0 )
+ else if ( i > from && myNbMarkers > 0 )
{
double u0 = xMap.transform( x( i - 1 ) );
double v0 = yMap.transform( y( i - 1 ) );
( ( dX >= 0 && u <= u1 ) || ( dX <= 0 && u1 <= u ) ) &&
( ( dY >= 0 && v <= v1 ) || ( dY <= 0 && v1 <= v ) ) )
{
- if ( !mySymbolsColorMap.isEmpty() )
- {
- if ( mySymbolsColorMap.contains( mySymbolsColorIds.at(i) ) )
- p->setBrush( QBrush( mySymbolsColorMap[ mySymbolsColorIds.at(i) ] ) );
- else
- p->setBrush( symbol.brush() );
- }
-
rect.moveCenter( QPoint( u, v ) );
symbol.draw( p, rect );