Skip to content
Permalink
Browse files
Fixed setCacheImage() python binding.
git-svn-id: http://svn.osgeo.org/qgis/trunk@14053 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Aug 11, 2010
1 parent 8e16ddd commit 9f7b2c7226fc97859b3c97d05d806ef65bcf0382
Showing with 4 additions and 1 deletion.
  1. +1 −1 python/core/qgsmaplayer.sip
  2. +3 −0 src/core/qgsmaplayer.cpp
@@ -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:

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

0 comments on commit 9f7b2c7

Please sign in to comment.