Skip to content

Commit

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

(cherry-picked from 5b3f10a)
  • Loading branch information
nyalldawson committed Oct 6, 2016
1 parent d4eada7 commit 550716a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/qgshighlight.cpp
Original file line number Diff line number Diff line change
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 550716a

Please sign in to comment.