Skip to content

Commit 9352fa1

Browse files
committedJul 1, 2012
Merge remote branch 'origin/master' into raster-pipes-2
2 parents 2fdd82f + fab2fe1 commit 9352fa1

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed
 

‎src/core/qgsexpression.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,12 @@ class CORE_EXPORT QgsExpression
261261
{
262262
// YEAR const value taken from postgres query
263263
// SELECT EXTRACT(EPOCH FROM interval '1 year')
264-
static const double YEARS = 31557600;
265-
static const double MONTHS = 60 * 60 * 24 * 30;
266-
static const double WEEKS = 60 * 60 * 24 * 7;
267-
static const double DAY = 60 * 60 * 24;
268-
static const double HOUR = 60 * 60;
269-
static const double MINUTE = 60;
264+
static const int YEARS = 31557600;
265+
static const int MONTHS = 60 * 60 * 24 * 30;
266+
static const int WEEKS = 60 * 60 * 24 * 7;
267+
static const int DAY = 60 * 60 * 24;
268+
static const int HOUR = 60 * 60;
269+
static const int MINUTE = 60;
270270
public:
271271
Interval( double seconds = 0 ) { mSeconds = seconds; }
272272
~Interval();

‎src/core/symbology-ng/qgssymbollayerv2utils.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -988,8 +988,6 @@ bool QgsSymbolLayerV2Utils::hasExternalGraphic( QDomElement &element )
988988
{
989989
return false;
990990
}
991-
992-
return false;
993991
}
994992

995993
bool QgsSymbolLayerV2Utils::hasWellKnownMark( QDomElement &element )
@@ -1163,7 +1161,7 @@ bool QgsSymbolLayerV2Utils::convertPolygonSymbolizerToPointMarker( QDomElement &
11631161
QString name, format;
11641162
int markIndex = -1;
11651163
QColor fillColor, borderColor;
1166-
double borderWidth = 1, size, angle = 0.0;
1164+
double borderWidth = 1.0, size = 0.0, angle = 0.0;
11671165
QPointF anchor, offset;
11681166

11691167
// Fill element can contain a GraphicFill element
@@ -1324,7 +1322,7 @@ bool QgsSymbolLayerV2Utils::convertPolygonSymbolizerToPointMarker( QDomElement &
13241322
map["fill"] = fillColor.name();
13251323
map["outline"] = borderColor.name();
13261324
map["outline-width"] = QString::number( borderWidth );
1327-
if ( size > 0 )
1325+
if ( !doubleNear( size, 0.0 ) )
13281326
map["size"] = QString::number( size );
13291327
if ( !doubleNear( angle, 0.0 ) )
13301328
map["angle"] = QString::number( angle );

0 commit comments

Comments
 (0)
Please sign in to comment.