[Qgis-developer] Problem with rendering when units are millimeters

Marco Hugentobler marco.hugentobler at sourcepole.ch
Sun Dec 16 02:13:18 PST 2012


>I think we should fix bindings
>as you suggest. Any objections?

Seems reasonable to me, committed. Maybe someone has a better fix. On 
the other hand, setting the forced width from python is probably not 
very important (in QGIS, the composer uses it for the preview).

Regards,
Marco

On 16.12.2012 09:12, Alexander Bruy wrote:
> Hi Marco,
>
> thanks for help and clarification. I think we should fix bindings
> as you suggest. Any objections?
>
> On Sun, 16 Dec 2012 06:47:04 +0100
> Marco Hugentobler <marco.hugentobler at sourcepole.ch> wrote:
>
>> Hi Alexander
>>
>> Seems to be a problem with the python bindings. In C++, the render
>> method is:
>> void QgsMapRenderer::render( QPainter* painter, double* forceWidthScale
>> = 0 );
>>
>> Somehow sip does not like that and forceWidthScale has a funny value
>> (also, I cannot call the method with two arguments from python). If I
>> change the function in qgsmaprenderer.sip to QgsMapRenderer::render(
>> QPainter* painter ), forceWidthScale is 0 and it works.


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee



More information about the Qgis-developer mailing list