maptools.diff

Martin Landa, 2012-03-02 01:38 AM

Download (1.02 KB)

View differences:

src/app/qgsmaptooloffsetcurve.cpp
353 353
    int quadSegments = s.value( "/qgis/digitizing/offset_quad_seg", 8 ).toInt();
354 354
    double mitreLimit = s.value( "/qgis/digitizine/offset_miter_limit", 5.0 ).toDouble();
355 355

  
356
    GEOSGeometry* offsetGeom = 0;
356
    GEOSGeometry* offsetGeom = NULL;
357 357
    //need at least geos 3.3 for OffsetCurve tool
358 358
#if defined(GEOS_VERSION_MAJOR) && defined(GEOS_VERSION_MINOR) && \
359 359
  ((GEOS_VERSION_MAJOR>3) || ((GEOS_VERSION_MAJOR==3) && (GEOS_VERSION_MINOR>=3)))
360
    GEOSGeometry* offsetGeom = GEOSOffsetCurve( geosGeom, ( leftSide > 0 ) ? offset : -offset, quadSegments, joinStyle, mitreLimit );
360
    offsetGeom = GEOSOffsetCurve( geosGeom, ( leftSide > 0 ) ? offset : -offset, quadSegments, joinStyle, mitreLimit );
361 361
#else
362 362
    return;
363 363
#endif //GEOS_VERSION