Skip to content

Commit 1b18395

Browse files
author
wonder
committedFeb 9, 2010
Applied patch from #2424 by Mathias Walker.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12909 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 023d98d commit 1b18395

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed
 

‎python/core/qgspluginlayer.sip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ class QgsPluginLayer : QgsMapLayer
1111
/** return plugin layer type (the same as used in QgsPluginLayerRegistry) */
1212
QString pluginLayerType();
1313

14+
void setExtent(const QgsRectangle& extent);
1415
};

‎src/core/qgspluginlayer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ QString QgsPluginLayer::pluginLayerType()
99
{
1010
return mPluginLayerType;
1111
}
12+
13+
void QgsPluginLayer::setExtent( const QgsRectangle & extent )
14+
{
15+
mLayerExtent = extent;
16+
}

‎src/core/qgspluginlayer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class CORE_EXPORT QgsPluginLayer : public QgsMapLayer
2323
/** return plugin layer type (the same as used in QgsPluginLayerRegistry) */
2424
QString pluginLayerType();
2525

26+
void setExtent( const QgsRectangle & extent );
27+
2628
protected:
2729
QString mPluginLayerType;
2830
};

0 commit comments

Comments
 (0)