Skip to content

Commit

Permalink
Coverity fixes, including regression in label point obstacle code
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 31, 2015
1 parent ba2b3de commit 8042343
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ QgsGeometryGeneratorSymbolLayerV2::QgsGeometryGeneratorSymbolLayerV2( const QStr
, mLineSymbol( nullptr )
, mMarkerSymbol( nullptr )
, mSymbol( nullptr )
, mSymbolType( QgsSymbolV2::Marker )
{

}
Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgssymbolv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ QRectF QgsMarkerSymbolV2::bounds( const QPointF& point, QgsRenderContext& contex
if ( bound.isNull() )
bound = symbolLayer->bounds( point, symbolContext );
else
bound = symbolLayer->bounds( point, symbolContext );
bound = bound.united( symbolLayer->bounds( point, symbolContext ) );
}
}
return bound;
Expand Down
1 change: 1 addition & 0 deletions src/gui/symbology-ng/qgssymbollayerv2widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3091,6 +3091,7 @@ void QgsSvgGroupsModel::createTree( QStandardItem*& parentGroup )

QgsGeometryGeneratorSymbolLayerWidget::QgsGeometryGeneratorSymbolLayerWidget( const QgsVectorLayer* vl, QWidget* parent )
: QgsSymbolLayerV2Widget( parent, vl )
, mLayer( nullptr )
{
setupUi( this );
modificationExpressionSelector->setLayer( const_cast<QgsVectorLayer*>( vl ) );
Expand Down

0 comments on commit 8042343

Please sign in to comment.