Skip to content
Permalink
Browse files

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 d4eada7 commit 550716a6685669efac389e9177b6f57eff8cb1e0
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/gui/qgshighlight.cpp
@@ -282,7 +282,7 @@ void QgsHighlight::paint( QPainter* p )

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

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

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

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

0 comments on commit 550716a

Please sign in to comment.
You can’t perform that action at this time.