Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jul 1, 2012
1 parent 778f20b commit fab2fe1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/core/qgsexpression.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,12 @@ class CORE_EXPORT QgsExpression
{
// YEAR const value taken from postgres query
// SELECT EXTRACT(EPOCH FROM interval '1 year')
static const double YEARS = 31557600;
static const double MONTHS = 60 * 60 * 24 * 30;
static const double WEEKS = 60 * 60 * 24 * 7;
static const double DAY = 60 * 60 * 24;
static const double HOUR = 60 * 60;
static const double MINUTE = 60;
static const int YEARS = 31557600;
static const int MONTHS = 60 * 60 * 24 * 30;
static const int WEEKS = 60 * 60 * 24 * 7;
static const int DAY = 60 * 60 * 24;
static const int HOUR = 60 * 60;
static const int MINUTE = 60;
public:
Interval( double seconds = 0 ) { mSeconds = seconds; }
~Interval();
Expand Down
6 changes: 2 additions & 4 deletions src/core/symbology-ng/qgssymbollayerv2utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -988,8 +988,6 @@ bool QgsSymbolLayerV2Utils::hasExternalGraphic( QDomElement &element )
{
return false;
}

return false;
}

bool QgsSymbolLayerV2Utils::hasWellKnownMark( QDomElement &element )
Expand Down Expand Up @@ -1163,7 +1161,7 @@ bool QgsSymbolLayerV2Utils::convertPolygonSymbolizerToPointMarker( QDomElement &
QString name, format;
int markIndex = -1;
QColor fillColor, borderColor;
double borderWidth = 1, size, angle = 0.0;
double borderWidth = 1.0, size = 0.0, angle = 0.0;
QPointF anchor, offset;

// Fill element can contain a GraphicFill element
Expand Down Expand Up @@ -1324,7 +1322,7 @@ bool QgsSymbolLayerV2Utils::convertPolygonSymbolizerToPointMarker( QDomElement &
map["fill"] = fillColor.name();
map["outline"] = borderColor.name();
map["outline-width"] = QString::number( borderWidth );
if ( size > 0 )
if ( !doubleNear( size, 0.0 ) )
map["size"] = QString::number( size );
if ( !doubleNear( angle, 0.0 ) )
map["angle"] = QString::number( angle );
Expand Down

0 comments on commit fab2fe1

Please sign in to comment.