From: <ai...@us...> - 2011-03-02 18:58:24
|
Revision: 11587 http://plplot.svn.sourceforge.net/plplot/?rev=11587&view=rev Author: airwin Date: 2011-03-02 18:58:17 +0000 (Wed, 02 Mar 2011) Log Message: ----------- Make all qt devices honor the -eofill option. The exception is the svgqt device, where there is currently a bug in the Qt4 libraries (at least for the Debian Squeeze platform) such that the SVG file output always specifies the oddeven SVG fill rule regardless of which fill rule is specified for the Qt4 libraries. Modified Paths: -------------- trunk/bindings/qt_gui/plqt.cpp Modified: trunk/bindings/qt_gui/plqt.cpp =================================================================== --- trunk/bindings/qt_gui/plqt.cpp 2011-03-02 18:36:05 UTC (rev 11586) +++ trunk/bindings/qt_gui/plqt.cpp 2011-03-02 18:58:17 UTC (rev 11587) @@ -127,7 +127,10 @@ polygon[i].setX( (PLFLT) x[i] * downscale ); polygon[i].setY( m_dHeight - (PLFLT) y[i] * downscale ); } - m_painterP->drawPolygon( polygon, npts, Qt::WindingFill ); + if ( plsc->dev_eofill ) + m_painterP->drawPolygon( polygon, npts, Qt::OddEvenFill ); + else + m_painterP->drawPolygon( polygon, npts, Qt::WindingFill ); delete[] polygon; } @@ -1295,7 +1298,10 @@ p->setPen( NoPen ); hasPen = false; } - p->drawPolygon( *( i->Data.Polyline ), Qt::WindingFill ); + if ( plsc->dev_eofill ) + p->drawPolygon( *( i->Data.Polyline ), Qt::OddEvenFill ); + else + p->drawPolygon( *( i->Data.Polyline ), Qt::WindingFill ); p->setRenderHints( QPainter::Antialiasing, (bool) lines_aa ); break; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |