Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use setCoordinateTransform instead of setCoordTransform
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9540 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Oct 24, 2008
1 parent c9d5a58 commit bb42f46
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/core/qgsrendercontext.sip
Expand Up @@ -33,7 +33,7 @@ class QgsRenderContext
//setters

/**Sets coordinate transformation. QgsRenderContext takes ownership and deletes if necessary*/
void setCoordTransform(QgsCoordinateTransform* t);
void setCoordinateTransform(QgsCoordinateTransform* t);
void setMapToPixel(const QgsMapToPixel& mtp);
void setExtent(const QgsRect& extent);
void setDrawEditingInformation(bool b);
Expand Down
6 changes: 3 additions & 3 deletions src/core/qgsmaprenderer.cpp
Expand Up @@ -231,7 +231,7 @@ void QgsMapRenderer::render( QPainter* painter )

mRenderContext.setDrawEditingInformation( !mOverview );
mRenderContext.setPainter( painter );
mRenderContext.setCoordTransform( 0 );
mRenderContext.setCoordinateTransform( 0 );
//this flag is only for stopping during the current rendering progress,
//so must be false at every new render operation
mRenderContext.setRenderingStopped( false );
Expand Down Expand Up @@ -313,7 +313,7 @@ void QgsMapRenderer::render( QPainter* painter )
ct = NULL;
}

mRenderContext.setCoordTransform( ct );
mRenderContext.setCoordinateTransform( ct );

//decide if we have to scale the raster
//this is necessary in case QGraphicsScene is used
Expand Down Expand Up @@ -407,7 +407,7 @@ void QgsMapRenderer::render( QPainter* painter )
ct = NULL;
}

mRenderContext.setCoordTransform( ct );
mRenderContext.setCoordinateTransform( ct );

ml->drawLabels( mRenderContext );
if ( split )
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsrendercontext.cpp
Expand Up @@ -28,7 +28,7 @@ QgsRenderContext::~QgsRenderContext()
delete mCoordTransform;
}

void QgsRenderContext::setCoordTransform( QgsCoordinateTransform* t )
void QgsRenderContext::setCoordinateTransform( QgsCoordinateTransform* t )
{
delete mCoordTransform;
mCoordTransform = t;
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsrendercontext.h
Expand Up @@ -59,7 +59,7 @@ class CORE_EXPORT QgsRenderContext
//setters

/**Sets coordinate transformation. QgsRenderContext takes ownership and deletes if necessary*/
void setCoordTransform( QgsCoordinateTransform* t );
void setCoordinateTransform( QgsCoordinateTransform* t );
void setMapToPixel( const QgsMapToPixel& mtp ) {mMapToPixel = mtp;}
void setExtent( const QgsRect& extent ) {mExtent = extent;}
void setDrawEditingInformation( bool b ) {mDrawEditingInformation = b;}
Expand Down

0 comments on commit bb42f46

Please sign in to comment.