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 _______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer