Skip to content
Permalink
Browse files

[API] QgsSymbolLayerUtils::decodeSldUom, scaleFactor is not mandatory

  • Loading branch information
rldhont authored and Gustry committed Jan 13, 2020
1 parent 2f7888b commit 1bc270db409aa1feeae534dea9a636f37128fbc3
@@ -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.

@@ -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.

0 comments on commit 1bc270d

Please sign in to comment.
You can’t perform that action at this time.