File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -261,12 +261,12 @@ class CORE_EXPORT QgsExpression
261
261
{
262
262
// YEAR const value taken from postgres query
263
263
// 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 ;
270
270
public:
271
271
Interval ( double seconds = 0 ) { mSeconds = seconds; }
272
272
~Interval ();
Original file line number Diff line number Diff line change @@ -988,8 +988,6 @@ bool QgsSymbolLayerV2Utils::hasExternalGraphic( QDomElement &element )
988
988
{
989
989
return false ;
990
990
}
991
-
992
- return false ;
993
991
}
994
992
995
993
bool QgsSymbolLayerV2Utils::hasWellKnownMark ( QDomElement &element )
@@ -1163,7 +1161,7 @@ bool QgsSymbolLayerV2Utils::convertPolygonSymbolizerToPointMarker( QDomElement &
1163
1161
QString name, format;
1164
1162
int markIndex = -1 ;
1165
1163
QColor fillColor, borderColor;
1166
- double borderWidth = 1 , size, angle = 0.0 ;
1164
+ double borderWidth = 1.0 , size = 0.0 , angle = 0.0 ;
1167
1165
QPointF anchor, offset;
1168
1166
1169
1167
// Fill element can contain a GraphicFill element
@@ -1324,7 +1322,7 @@ bool QgsSymbolLayerV2Utils::convertPolygonSymbolizerToPointMarker( QDomElement &
1324
1322
map[" fill" ] = fillColor.name ();
1325
1323
map[" outline" ] = borderColor.name ();
1326
1324
map[" outline-width" ] = QString::number ( borderWidth );
1327
- if ( size > 0 )
1325
+ if ( ! doubleNear ( size, 0.0 ) )
1328
1326
map[" size" ] = QString::number ( size );
1329
1327
if ( !doubleNear ( angle, 0.0 ) )
1330
1328
map[" angle" ] = QString::number ( angle );
You can’t perform that action at this time.
0 commit comments