Skip to content

Commit

Permalink
Fixed setCacheImage() python binding.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14053 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Aug 11, 2010
1 parent 20d27aa commit 423d4f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/core/qgsmaplayer.sip
Expand Up @@ -283,7 +283,7 @@ public:
QImage *cacheImage();
/** Set the QImage used for caching render operations
* @note This method was added in QGIS 1.4 **/
void setCacheImage( QImage * thepImage );
void setCacheImage( QImage * thepImage /Transfer/ );

public slots:

Expand Down
3 changes: 3 additions & 0 deletions src/core/qgsmaplayer.cpp
Expand Up @@ -843,6 +843,9 @@ void QgsMapLayer::writeCustomProperties( QDomNode & layerNode, QDomDocument & do
void QgsMapLayer::setCacheImage( QImage * thepImage )
{
QgsDebugMsg( "cache Image set!" );
if ( mpCacheImage == thepImage )
return;

if ( mpCacheImage )
{
delete mpCacheImage;
Expand Down

0 comments on commit 423d4f5

Please sign in to comment.