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

Alexander Bruy alexander.bruy at gmail.com
Sun Dec 16 00:12:41 PST 2012


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.

-- 
Alexander Bruy


More information about the Qgis-developer mailing list