Skip to content

Commit

Permalink
Do not force vector output by default (use only in composer map), ena…
Browse files Browse the repository at this point in the history
…ble setting of the flag

git-svn-id: http://svn.osgeo.org/qgis/trunk@13418 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed May 4, 2010
1 parent c9d34fd commit 1981f60
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions python/core/qgsrendercontext.sip
Expand Up @@ -47,6 +47,8 @@ class QgsRenderContext
void setRasterScaleFactor(double factor);
void setRendererScale( double scale );
void setPainter(QPainter* p);
//! Added in QGIS v1.5
void setForceVectorOutput( bool force );
//! Added in QGIS v1.4
void setLabelingEngine(QgsLabelingEngineInterface* iface);
};
3 changes: 3 additions & 0 deletions src/core/composer/qgscomposermap.cpp
Expand Up @@ -142,6 +142,9 @@ void QgsComposerMap::draw( QPainter *painter, const QgsRectangle& extent, const
theRendererContext->setRenderingStopped( false );
}

// force vector output (no caching of marker images etc.)
theRendererContext->setForceVectorOutput( true );

//force composer map scale for scale dependent visibility
double bk_scale = theMapRenderer.scale();
theMapRenderer.setScale( scale() );
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsrendercontext.cpp
Expand Up @@ -22,7 +22,7 @@ QgsRenderContext::QgsRenderContext()
: mPainter( 0 ),
mCoordTransform( 0 ),
mDrawEditingInformation( false ),
mForceVectorOutput( true ),
mForceVectorOutput( false ),
mRenderingStopped( false ),
mScaleFactor( 1.0 ),
mRasterScaleFactor( 1.0 ),
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsrendercontext.h
Expand Up @@ -75,6 +75,8 @@ class CORE_EXPORT QgsRenderContext
void setRasterScaleFactor( double factor ) {mRasterScaleFactor = factor;}
void setRendererScale( double scale ) {mRendererScale = scale;}
void setPainter( QPainter* p ) {mPainter = p;}
//! Added in QGIS v1.5
void setForceVectorOutput( bool force ) {mForceVectorOutput = force;}
//! Added in QGIS v1.4
void setLabelingEngine( QgsLabelingEngineInterface* iface ) { mLabelingEngine = iface; }

Expand Down

0 comments on commit 1981f60

Please sign in to comment.