Fix layer legend drop indicators; restore painter state after layer mark

This commit is contained in:
Larry Shaffer 2019-07-01 13:13:01 -06:00
parent 7ac02ae881
commit ff77edca44
No known key found for this signature in database
GPG Key ID: 71DFAD03014DF2A8

View File

@ -91,6 +91,8 @@ void QgsLayerTreeViewItemDelegate::paint( QPainter *painter, const QStyleOptionV
painter->setPen( QPen( Qt::NoPen ) );
painter->setBrush( QBrush( opt.palette.mid() ) );
painter->drawRect( mRect );
painter->setBrush( pb );
painter->setPen( pp );
const QList<QgsLayerTreeViewIndicator *> indicators = mLayerTreeView->indicators( node );
if ( indicators.isEmpty() )