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 <[email protected]> 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
[email protected] http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer