Skip to content

Commit 5cacf59

Browse files
committed
Fix uninitialized variables identified by coverity
1 parent b05e789 commit 5cacf59

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/core/qgsdiagramrendererv2.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,18 @@ class CORE_EXPORT QgsDiagramSettings
109109
Right
110110
};
111111

112-
QgsDiagramSettings(): sizeType( MM ), minScaleDenominator( -1 ), maxScaleDenominator( -1 )
112+
QgsDiagramSettings()
113+
: sizeType( MM )
114+
, penWidth( 0.0 )
115+
, labelPlacementMethod( QgsDiagramSettings::Height )
116+
, diagramOrientation( QgsDiagramSettings::Up )
117+
, barWidth( 5.0 )
118+
, transparency( 0 )
119+
, scaleByArea( true )
120+
, angleOffset( 90 * 16 ) //top
121+
, minScaleDenominator( -1 )
122+
, maxScaleDenominator( -1 )
123+
, minimumSize( 0.0 )
113124
{}
114125
QFont font;
115126
QList< QColor > categoryColors;

0 commit comments

Comments
 (0)