Skip to content
Permalink
Browse files
fix warnings
  • Loading branch information
jef-n committed Dec 9, 2012
1 parent 9721736 commit 1c14beaa4f19fcbd9f02abd68f4b250befc3bfba
Showing with 1 addition and 3 deletions.
  1. +1 −1 src/app/qgsmaptooloffsetcurve.cpp
  2. +0 −2 src/providers/grass/qgsgrassgislib.cpp
@@ -355,7 +355,7 @@ void QgsMapToolOffsetCurve::setOffsetForRubberBand( double offset, bool leftSide
int quadSegments = s.value( "/qgis/digitizing/offset_quad_seg", 8 ).toInt();
double mitreLimit = s.value( "/qgis/digitizing/offset_miter_limit", 5.0 ).toDouble();

GEOSGeometry* offsetGeom = GEOSOffsetCurve( geosGeom, ( leftSide > 0 ) ? offset : -offset, quadSegments, joinStyle, mitreLimit );
GEOSGeometry* offsetGeom = GEOSOffsetCurve( geosGeom, leftSide ? offset : -offset, quadSegments, joinStyle, mitreLimit );
if ( !offsetGeom )
{
deleteRubberBandAndGeometry();
@@ -960,11 +960,9 @@ RASTER_MAP_TYPE QgsGrassGisLib::grassRasterType( QgsRasterBlock::DataType qgisTy
case QgsRasterBlock::CFloat64:
case QgsRasterBlock::ARGB32:
case QgsRasterBlock::ARGB32_Premultiplied:
return -1;
default:
return -1;
}
return -1; // not reached
}

char GRASS_LIB_EXPORT *G_tempfile( void )

0 comments on commit 1c14bea

Please sign in to comment.