[Qgis-developer] QgsRasterBlock.setColor(size_t, QRgb) in SIP

Radim Blazek radim.blazek at gmail.com
Wed Oct 23 08:02:33 PDT 2013


I have a strange problem,
   block = QgsRasterBlock ( QGis.ARGB32_Premultiplied, 10, 10, 0 )
   block.setColor( 0, QColor ().rgb() )
prints warning when run in QGIS Python shell (in QGIS debug output,
not in shell):
  qgsrasterblock.cpp: 378: (setColor) index 140703128616960 out of range

The same code run in pure Python shell (outside QGIS) works OK. Also
QgsRasterBlock.setColor(int,int,QRgb) and
QgsRasterBlock.setValue(size_t, double) both works OK in QGIS Python
shell.

Any idea?

Radim


More information about the Qgis-developer mailing list