Fix rubber band doesn't like geometries with Z/M

This commit is contained in:
Nyall Dawson 2017-09-29 11:32:24 +10:00
parent fc844c66d4
commit a874faf6a3

View File

@ -249,7 +249,7 @@ void QgsRubberBand::addGeometry( const QgsGeometry &geometry, QgsVectorLayer *la
geom.transform( ct ); geom.transform( ct );
} }
switch ( geom.wkbType() ) switch ( QgsWkbTypes::flatType( geom.wkbType() ) )
{ {
case QgsWkbTypes::Point: case QgsWkbTypes::Point: