Skip to content

Commit

Permalink
Transfer ownership of transparency to prevent crashing python apps.
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Dec 6, 2012
1 parent fcedd5d commit cd74d71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion python/core/raster/qgsrasterrenderer.sip
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

class QgsRasterRenderer : QgsRasterInterface
{
%TypeHeaderCode
Expand Down Expand Up @@ -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 );
Expand Down
4 changes: 2 additions & 2 deletions python/core/raster/qgsrastertransparency.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cd74d71

Please sign in to comment.