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

2013-10-31 Thread Radim Blazek
On Wed, Oct 30, 2013 at 10:50 AM, Martin Dobias wonder...@gmail.com wrote: On Wed, Oct 30, 2013 at 4:10 PM, Radim Blazek radim.bla...@gmail.com wrote: We should probably try to compile and run a tiny program (during CMake configure phase) that will return the value of sizeof(size_t) and from

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

2013-10-30 Thread Radim Blazek
On Mon, Oct 28, 2013 at 8:38 AM, Martin Dobias wonder...@gmail.com wrote: On Thu, Oct 24, 2013 at 9:40 PM, Radim Blazek radim.bla...@gmail.com wrote: Then I get block.setColor( 0, QColor ().rgb() ) Traceback (most recent call last): File input, line 1, in module TypeError: arguments did

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

2013-10-30 Thread Martin Dobias
On Wed, Oct 30, 2013 at 4:10 PM, Radim Blazek radim.bla...@gmail.com wrote: We should probably try to compile and run a tiny program (during CMake configure phase) that will return the value of sizeof(size_t) and from that generate a helper .sip file with correct definition for size_t. Is it

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

2013-10-28 Thread Martin Dobias
On Thu, Oct 24, 2013 at 9:40 PM, Radim Blazek radim.bla...@gmail.com wrote: Then I get block.setColor( 0, QColor ().rgb() ) Traceback (most recent call last): File input, line 1, in module TypeError: arguments did not match any overloaded call: QgsRasterBlock.setColor(int, int, int):

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

2013-10-24 Thread Radim Blazek
On Thu, Oct 24, 2013 at 3:46 AM, Martin Dobias wonder...@gmail.com wrote: On Thu, Oct 24, 2013 at 1:32 AM, Radim Blazek radim.bla...@gmail.com wrote: On Wed, Oct 23, 2013 at 7:07 PM, Martin Dobias wonder...@gmail.com wrote: When I enter those two lines into QGIS python console, it work fine

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

2013-10-24 Thread Radim Blazek
Related issue http://hub.qgis.org/issues/6505 Radim On Thu, Oct 24, 2013 at 4:40 PM, Radim Blazek radim.bla...@gmail.com wrote: On Thu, Oct 24, 2013 at 3:46 AM, Martin Dobias wonder...@gmail.com wrote: On Thu, Oct 24, 2013 at 1:32 AM, Radim Blazek radim.bla...@gmail.com wrote: On Wed, Oct 23,

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

2013-10-23 Thread Radim Blazek
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

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

2013-10-23 Thread Martin Dobias
Hi Radim On Wed, Oct 23, 2013 at 10:02 PM, Radim Blazek radim.bla...@gmail.com wrote: 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

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

2013-10-23 Thread Radim Blazek
On Wed, Oct 23, 2013 at 7:07 PM, Martin Dobias wonder...@gmail.com wrote: Hi Radim On Wed, Oct 23, 2013 at 10:02 PM, Radim Blazek radim.bla...@gmail.com wrote: I have a strange problem, block = QgsRasterBlock ( QGis.ARGB32_Premultiplied, 10, 10, 0 ) block.setColor( 0, QColor ().rgb() )

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

2013-10-23 Thread Martin Dobias
On Thu, Oct 24, 2013 at 1:32 AM, Radim Blazek radim.bla...@gmail.com wrote: On Wed, Oct 23, 2013 at 7:07 PM, Martin Dobias wonder...@gmail.com wrote: When I enter those two lines into QGIS python console, it work fine (no debug output, result of setColor() call is True). Tested on linux 64bit,