Skip to content

Commit e552ce6

Browse files
committedMay 28, 2018
Add warning note to QgsLayoutPageCollection::shouldExportPage
1 parent 5cf3396 commit e552ce6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
 

‎python/core/auto_generated/layout/qgslayoutpagecollection.sip.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ Returns a list of layout items on the specified ``page`` index.
100100
%Docstring
101101
Returns whether the specified ``page`` number should be included in exports of the layouts.
102102

103+
.. warning::
104+
105+
This will always return true unless the layout is being currently exported -- it cannot
106+
be used in advance to determine whether a given page will be exported!
107+
103108
.. seealso:: :py:func:`pageIsEmpty`
104109
%End
105110

‎src/core/layout/qgslayoutpagecollection.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ class CORE_EXPORT QgsLayoutPageCollection : public QObject, public QgsLayoutSeri
138138

139139
/**
140140
* Returns whether the specified \a page number should be included in exports of the layouts.
141+
*
142+
* \warning This will always return true unless the layout is being currently exported -- it cannot
143+
* be used in advance to determine whether a given page will be exported!
144+
*
141145
* \see pageIsEmpty()
142146
*/
143147
bool shouldExportPage( int page ) const;

0 commit comments

Comments
 (0)
Please sign in to comment.