Skip to content
Permalink
Browse files
Transfer ownership of transparency to prevent crashing python apps.
  • Loading branch information
timlinux committed Dec 6, 2012
1 parent fcedd5d commit cd74d71a1da3615ceb9679e20a020665c0ac8df8
Showing with 4 additions and 3 deletions.
  1. +2 −1 python/core/raster/qgsrasterrenderer.sip
  2. +2 −2 python/core/raster/qgsrastertransparency.sip
@@ -1,3 +1,4 @@

class QgsRasterRenderer : QgsRasterInterface
{
%TypeHeaderCode
@@ -46,7 +47,7 @@ class QgsRasterRenderer : QgsRasterInterface
void setOpacity( double opacity );
double opacity() const;

void setRasterTransparency( QgsRasterTransparency* t );
void setRasterTransparency( QgsRasterTransparency* t /Transfer/);
const QgsRasterTransparency* rasterTransparency() const;

void setAlphaBand( int band );
@@ -42,10 +42,10 @@ class QgsRasterTransparency
void initializeTransparentPixelList( double, double, double );

/** \brief Accessor for transparentSingleValuePixelList */
void setTransparentSingleValuePixelList( QList<QgsRasterTransparency::TransparentSingleValuePixel> );
void setTransparentSingleValuePixelList( QList<QgsRasterTransparency::TransparentSingleValuePixel> /Transfer/);

/** \brief Accessor for transparentThreeValuePixelList */
void setTransparentThreeValuePixelList( QList<QgsRasterTransparency::TransparentThreeValuePixel> );
void setTransparentThreeValuePixelList( QList<QgsRasterTransparency::TransparentThreeValuePixel> /Transfer/);

/** \brief Returns the transparency value for a single value Pixel */
int alphaValue( double, int theGlobalTransparency = 255 ) const;

0 comments on commit cd74d71

Please sign in to comment.