Skip to content

Commit 59ce32e

Browse files
author
jef
committed
fix warnings
git-svn-id: http://svn.osgeo.org/qgis/trunk@15507 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 88d4389 commit 59ce32e

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/app/qgsvectorlayerproperties.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1626,6 +1626,9 @@ void QgsVectorLayerProperties::initDiagramTab()
16261626
case QGis::Polygon:
16271627
mPlacementComboBox->setCurrentIndex( mPlacementComboBox->findData( 0 ) );
16281628
break;
1629+
case QGis::UnknownGeometry:
1630+
case QGis::NoGeometry:
1631+
break;
16291632
}
16301633
mBackgroundColorButton->setColor( QColor( 255, 255, 255, 255 ) );
16311634
}

src/core/qgsdiagramrendererv2.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct CORE_EXPORT QgsDiagramSettings
7272
MapUnits
7373
};
7474

75-
QgsDiagramSettings(): minScaleDenominator( -1 ), maxScaleDenominator( -1 ), sizeType( MM )
75+
QgsDiagramSettings(): sizeType( MM ), minScaleDenominator( -1 ), maxScaleDenominator( -1 )
7676
{}
7777
QFont font;
7878
QList< QColor > categoryColors;
@@ -121,7 +121,10 @@ class CORE_EXPORT QgsDiagramRendererV2
121121
protected:
122122

123123
/**Returns diagram settings for a feature (or false if the diagram for the feature is not to be rendered). Used internally within renderDiagram()
124-
@param s out: diagram settings for the feature*/
124+
* @param att attribute map
125+
* @param c render context
126+
* @param s out: diagram settings for the feature
127+
*/
125128
virtual bool diagramSettings( const QgsAttributeMap& att, const QgsRenderContext& c, QgsDiagramSettings& s ) = 0;
126129

127130
/**Returns size of the diagram (in painter units) or an invalid size in case of error*/

src/core/qgsvectorlayer.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,8 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
814814
void updateAttributeMapIndex( QgsAttributeMap& map, int oldIndex, int newIndex ) const;
815815

816816
/**Registers label and diagram layer
817-
@param attList attributes needed for labeling and diagrams will be added to the list
817+
@param rendererContext render context
818+
@param attributes attributes needed for labeling and diagrams will be added to the list
818819
@param labeling out: true if there will be labeling (ng) for this layer*/
819820
void prepareLabelingAndDiagrams( QgsRenderContext& rendererContext, QgsAttributeList& attributes, bool& labeling );
820821

0 commit comments

Comments
 (0)