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.
Expand Up @@ -55,6 +55,7 @@ QgsGeometryGeneratorSymbolLayerV2::QgsGeometryGeneratorSymbolLayerV2( const QStr
, mLineSymbol( nullptr ) , mLineSymbol( nullptr )
, mMarkerSymbol( nullptr ) , mMarkerSymbol( nullptr )
, mSymbol( nullptr ) , mSymbol( nullptr )
, mSymbolType( QgsSymbolV2::Marker )
{ {


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


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

0 comments on commit 8042343

Please sign in to comment.