Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix identify menu highlight only works with simple geometry types
Fix #15625

(cherry-picked from 5b3f10a)
  • Loading branch information
nyalldawson committed Oct 6, 2016
1 parent e6df7e3 commit 52f702e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/qgshighlight.cpp
Expand Up @@ -282,7 +282,7 @@ void QgsHighlight::paint( QPainter* p )

switch ( mGeometry->type() )
{
case QGis::PointGeometry:
case QGis::Point:
{
if ( !mGeometry->isMultipart() )
{
Expand All @@ -299,7 +299,7 @@ void QgsHighlight::paint( QPainter* p )
}
break;

case QGis::LineGeometry:
case QGis::Line:
{
if ( !mGeometry->isMultipart() )
{
Expand All @@ -317,7 +317,7 @@ void QgsHighlight::paint( QPainter* p )
break;
}

case QGis::PolygonGeometry:
case QGis::Polygon:
{
if ( !mGeometry->isMultipart() )
{
Expand All @@ -335,7 +335,7 @@ void QgsHighlight::paint( QPainter* p )
}

case QGis::UnknownGeometry:
case QGis::NullGeometry:
case QGis::NoGeometry:
return;
}
}
Expand Down

0 comments on commit 52f702e

Please sign in to comment.