mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix related to r15547, manage lines out of the drawing rectangle (empty vectors of points)
git-svn-id: http://svn.osgeo.org/qgis/trunk@15563 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
a6de6592aa
commit
749d681e1e
@ -314,6 +314,9 @@ void QgsMarkerLineSymbolLayerV2::renderPolyline( const QPolygonF& points, QgsSym
|
||||
|
||||
void QgsMarkerLineSymbolLayerV2::renderPolylineInterval( const QPolygonF& points, QgsSymbolV2RenderContext& context )
|
||||
{
|
||||
if ( ! points.isEmpty() )
|
||||
return;
|
||||
|
||||
QPointF lastPt = points[0];
|
||||
double lengthLeft = 0; // how much is left until next marker
|
||||
bool first = true;
|
||||
@ -383,7 +386,9 @@ static double _averageAngle( const QPointF& prevPt, const QPointF& pt, const QPo
|
||||
|
||||
void QgsMarkerLineSymbolLayerV2::renderPolylineVertex( const QPolygonF& points, QgsSymbolV2RenderContext& context )
|
||||
{
|
||||
QPointF lastPt = points[0];
|
||||
if ( points.isEmpty() )
|
||||
return;
|
||||
|
||||
QgsRenderContext& rc = context.renderContext();
|
||||
|
||||
double origAngle = mMarker->angle();
|
||||
|
Loading…
x
Reference in New Issue
Block a user