Skip to content
Permalink
Browse files

Fix offset is ignored for simple line symbology

  • Loading branch information
nyalldawson committed Oct 8, 2014
1 parent 6bb045b commit 344eccd7348d0779c5bd56a4cf5844865c3eafc4
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/core/symbology-ng/qgslinesymbollayerv2.cpp
@@ -294,7 +294,7 @@ void QgsSimpleLineSymbolLayerV2::renderPolyline( const QPolygonF& points, QgsSym
return;
}

double offset = 0.0;
double offset = mOffset;
applyDataDefinedSymbology( context, mPen, mSelPen, offset );

p->setPen( context.selected() ? mSelPen : mPen );
@@ -311,7 +311,7 @@ void QgsSimpleLineSymbolLayerV2::renderPolyline( const QPolygonF& points, QgsSym
return;
}

if ( offset == 0 )
if ( qgsDoubleNear( offset, 0 ) )
{
p->drawPolyline( points );
}
@@ -480,7 +480,6 @@ void QgsSimpleLineSymbolLayerV2::applyDataDefinedSymbology( QgsSymbolV2RenderCon
}

//offset
offset = mOffset;
QgsExpression* lineOffsetExpression = expression( "offset" );
if ( lineOffsetExpression )
{

0 comments on commit 344eccd

Please sign in to comment.
You can’t perform that action at this time.