Skip to content

Commit

Permalink
Fix rubber band doesn't like geometries with Z/M
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 1, 2017
1 parent fc844c6 commit a874faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsrubberband.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ void QgsRubberBand::addGeometry( const QgsGeometry &geometry, QgsVectorLayer *la
geom.transform( ct );
}

switch ( geom.wkbType() )
switch ( QgsWkbTypes::flatType( geom.wkbType() ) )
{

case QgsWkbTypes::Point:
Expand Down

0 comments on commit a874faf

Please sign in to comment.