Skip to content

Commit c8ad99b

Browse files
committed
Fix incorrect cast to double in shapeburst fill header
1 parent 2d69f98 commit c8ad99b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

python/core/symbology-ng/qgsfillsymbollayerv2.sip

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,14 +278,14 @@ class QgsShapeburstFillSymbolLayerV2 : QgsFillSymbolLayerV2
278278
* @see useWholeShape
279279
* @see setMaxDistance
280280
*/
281-
void setUseWholeShape( double useWholeShape );
281+
void setUseWholeShape( bool useWholeShape );
282282
/**Returns whether the shapeburst fill is set to cover the entire shape.
283283
* @returns True if shapeburst fill will cover the entire shape. If false, shapeburst is drawn to a distance of maxDistance from the polygon's boundary.
284284
* @note added in 2.3
285285
* @see setUseWholeShape
286286
* @see maxDistance
287287
*/
288-
double useWholeShape() const;
288+
bool useWholeShape() const;
289289

290290
/**Sets the maximum distance to shape inside of the shape from the polygon's boundary.
291291
* @param maxDistance distance from boundary to shade. setUseWholeShape must be set to false for this parameter to take effect. Distance unit is controlled by setDistanceUnit.
@@ -379,13 +379,13 @@ class QgsShapeburstFillSymbolLayerV2 : QgsFillSymbolLayerV2
379379
* @note added in 2.3
380380
* @see ignoreRings
381381
*/
382-
void setIgnoreRings( double ignoreRings );
382+
void setIgnoreRings( bool ignoreRings );
383383
/**Returns whether the shapeburst fill is set to ignore polygon interior rings.
384384
* @returns True if the shapeburst fill will ignore interior rings when calculating buffered shading.
385385
* @note added in 2.3
386386
* @see setIgnoreRings
387387
*/
388-
double ignoreRings() const;
388+
bool ignoreRings() const;
389389

390390
/**Sets the offset for the shapeburst fill.
391391
* @param offset QPointF indicating the horizontal/vertical offset amount

src/core/symbology-ng/qgsfillsymbollayerv2.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,14 @@ class CORE_EXPORT QgsShapeburstFillSymbolLayerV2 : public QgsFillSymbolLayerV2
359359
* @see useWholeShape
360360
* @see setMaxDistance
361361
*/
362-
void setUseWholeShape( double useWholeShape ) { mUseWholeShape = useWholeShape; }
362+
void setUseWholeShape( bool useWholeShape ) { mUseWholeShape = useWholeShape; }
363363
/**Returns whether the shapeburst fill is set to cover the entire shape.
364364
* @returns True if shapeburst fill will cover the entire shape. If false, shapeburst is drawn to a distance of maxDistance from the polygon's boundary.
365365
* @note added in 2.3
366366
* @see setUseWholeShape
367367
* @see maxDistance
368368
*/
369-
double useWholeShape() const { return mUseWholeShape; }
369+
bool useWholeShape() const { return mUseWholeShape; }
370370

371371
/**Sets the maximum distance to shape inside of the shape from the polygon's boundary.
372372
* @param maxDistance distance from boundary to shade. setUseWholeShape must be set to false for this parameter to take effect. Distance unit is controlled by setDistanceUnit.
@@ -460,13 +460,13 @@ class CORE_EXPORT QgsShapeburstFillSymbolLayerV2 : public QgsFillSymbolLayerV2
460460
* @note added in 2.3
461461
* @see ignoreRings
462462
*/
463-
void setIgnoreRings( double ignoreRings ) { mIgnoreRings = ignoreRings; }
463+
void setIgnoreRings( bool ignoreRings ) { mIgnoreRings = ignoreRings; }
464464
/**Returns whether the shapeburst fill is set to ignore polygon interior rings.
465465
* @returns True if the shapeburst fill will ignore interior rings when calculating buffered shading.
466466
* @note added in 2.3
467467
* @see setIgnoreRings
468468
*/
469-
double ignoreRings() const { return mIgnoreRings; }
469+
bool ignoreRings() const { return mIgnoreRings; }
470470

471471
/**Sets the offset for the shapeburst fill.
472472
* @param offset QPointF indicating the horizontal/vertical offset amount

0 commit comments

Comments
 (0)