Skip to content

Commit

Permalink
[API] QgsSymbolLayerUtils::decodeSldUom, scaleFactor is not mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Jan 15, 2020
1 parent 32cad40 commit 0ea6c7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -171,7 +171,7 @@ Encodes a render unit into an SLD unit of measure string.
.. seealso:: :py:func:`decodeSldUom`
%End

static QgsUnitTypes::RenderUnit decodeSldUom( const QString &str, double *scaleFactor );
static QgsUnitTypes::RenderUnit decodeSldUom( const QString &str, double *scaleFactor = 0 );
%Docstring
Decodes a SLD unit of measure string to a render unit.

Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology/qgssymbollayerutils.h
Expand Up @@ -191,7 +191,7 @@ class CORE_EXPORT QgsSymbolLayerUtils
* \returns matching render unit
* \see encodeSldUom()
*/
static QgsUnitTypes::RenderUnit decodeSldUom( const QString &str, double *scaleFactor );
static QgsUnitTypes::RenderUnit decodeSldUom( const QString &str, double *scaleFactor = nullptr );

/**
* Returns the size scaled in pixels according to the uom attribute.
Expand Down

0 comments on commit 0ea6c7a

Please sign in to comment.