Skip to content

Commit

Permalink
Use setCoordinateTransform instead of setCoordTransform
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@9540 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Oct 24, 2008
1 parent 6eb5e8c commit 7bd5e8d
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 7bd5e8d

Please sign in to comment.