Skip to content
Permalink
Browse files

Do not force vector output by default (use only in composer map), ena…

…ble setting of the flag

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13418 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed May 4, 2010
1 parent d2b42be commit d8c7a16aaa08632458cd8f1f4f639f16ba3ef0ce
@@ -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);
};
@@ -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() );
@@ -22,7 +22,7 @@ QgsRenderContext::QgsRenderContext()
: mPainter( 0 ),
mCoordTransform( 0 ),
mDrawEditingInformation( false ),
mForceVectorOutput( true ),
mForceVectorOutput( false ),
mRenderingStopped( false ),
mScaleFactor( 1.0 ),
mRasterScaleFactor( 1.0 ),
@@ -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; }

0 comments on commit d8c7a16

Please sign in to comment.
You can’t perform that action at this time.