Skip to content

Commit c20b5b2

Browse files
committed
fix multine removal for SIP_PYARGREOMVEq
1 parent 32e844f commit c20b5b2

File tree

6 files changed

+10
-18
lines changed

6 files changed

+10
-18
lines changed

python/core/auto_generated/geometry/qgsgeometry.sip.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,13 +1586,13 @@ empty if none of the child geometries match the desired type.
15861586
%Docstring
15871587
Modifies geometry to avoid intersections with the layers specified in project properties
15881588

1589+
:param avoidIntersectionsLayers: list of layers to check for intersections
1590+
15891591
:return: 0 in case of success,
15901592
1 if geometry is not of polygon type,
15911593
2 if avoid intersection would change the geometry type,
15921594
3 other error during intersection removal
15931595

1594-
:param avoidIntersectionsLayers: list of layers to check for intersections
1595-
15961596
.. versionadded:: 1.5
15971597
%End
15981598

python/core/auto_generated/qgsmaplayerstore.sip.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ to the store.
119119
The layersAdded() and layerWasAdded() signals will always be emitted.
120120

121121
:param layers: A list of layer which should be added to the store.
122-
If you specify false here you have take care of deleting
123-
the layers yourself. Not available in Python.
124122

125123
:return: a list of the map layers that were added
126124
successfully. If a layer already exists in the store,
@@ -141,8 +139,6 @@ If you are adding multiple layers at once, you should use
141139
addMapLayers() instead.
142140

143141
:param layer: A layer to add to the store
144-
If you specify false here you have take care of deleting
145-
the layers yourself. Not available in Python.
146142

147143
:return: None if unable to add layer, otherwise pointer to newly added layer
148144

python/core/auto_generated/qgspallabeling.sip.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,6 @@ Register a feature for labeling.
398398
must have already had the feature and fields sets prior to calling this method.
399399
:param labelFeature: if using :py:class:`QgsLabelingEngine`, this will receive the label feature. Not available
400400
in Python bindings.
401-
should be used as an obstacle for labels (e.g., if the feature has been rendered with an offset point
402-
symbol, the obstacle geometry should represent the bounds of the offset symbol). If not set,
403-
the feature's original geometry will be used as an obstacle for labels. Not available
404-
in Python bindings.
405401
%End
406402

407403
void readXml( QDomElement &elem, const QgsReadWriteContext &context );

python/core/auto_generated/qgsproject.sip.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,6 @@ The legendLayersAdded() signal is emitted only if addToLegend is true.
765765
:param addToLegend: If true (by default), the layers will be added to the
766766
legend and to the main canvas. If you have a private
767767
layer you can set this parameter to false to hide it.
768-
If you specify false here you have take care of deleting
769-
the layers yourself. Not available in Python.
770768

771769
:return: a list of the map layers that were added
772770
successfully. If a layer or already exists in the registry,
@@ -802,8 +800,6 @@ addMapLayers() instead.
802800
:param addToLegend: If true (by default), the layer will be added to the
803801
legend and to the main canvas. If you have a private
804802
layer you can set this parameter to false to hide it.
805-
If you specify false here you have take care of deleting
806-
the layer yourself. Not available in Python.
807803

808804
:return: None if unable to add layer, otherwise pointer to newly added layer
809805

scripts/sipify.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,10 @@ sub detect_non_method_member{
12301230
# exit_with_error('Skipped param (SIP_OUT) should have their doc on a single line');
12311231
next;
12321232
}
1233+
else
1234+
{
1235+
next;
1236+
}
12331237
}
12341238
write_output("CM2", "$doc_prepend$comment_line\n");
12351239
if ( $comment_line =~ m/:return:/ && $#out_params >= 0 ){

src/core/geometry/qgsgeometry.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,12 +1601,12 @@ class CORE_EXPORT QgsGeometry
16011601

16021602
/**
16031603
* Modifies geometry to avoid intersections with the layers specified in project properties
1604-
* \returns 0 in case of success,
1605-
* 1 if geometry is not of polygon type,
1606-
* 2 if avoid intersection would change the geometry type,
1607-
* 3 other error during intersection removal
16081604
* \param avoidIntersectionsLayers list of layers to check for intersections
16091605
* \param ignoreFeatures possibility to give a list of features where intersections should be ignored (not available in Python bindings)
1606+
* \returns 0 in case of success,
1607+
* 1 if geometry is not of polygon type,
1608+
* 2 if avoid intersection would change the geometry type,
1609+
* 3 other error during intersection removal
16101610
* \since QGIS 1.5
16111611
*/
16121612
int avoidIntersections( const QList<QgsVectorLayer *> &avoidIntersectionsLayers,

0 commit comments

Comments
 (0)