Skip to content

Commit

Permalink
More descriptive parameter name and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Dec 8, 2011
1 parent 365c33d commit 94984a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/core/qgsmaprenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void QgsMapRenderer::adjustExtentToSize()
}


void QgsMapRenderer::render( QPainter* painter, double* forceScaleFactor )
void QgsMapRenderer::render( QPainter* painter, double* forceWidthScale )
{
//Lock render method for concurrent threads (e.g. from globe)
QMutexLocker renderLock( &mRenderMutex );
Expand Down Expand Up @@ -282,9 +282,9 @@ void QgsMapRenderer::render( QPainter* painter, double* forceScaleFactor )
double scaleFactor = 1.0;
if ( mOutputUnits == QgsMapRenderer::Millimeters )
{
if ( forceScaleFactor )
if ( forceWidthScale )
{
scaleFactor = *forceScaleFactor;
scaleFactor = *forceWidthScale;
}
else
{
Expand Down
3 changes: 2 additions & 1 deletion src/core/qgsmaprenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ class CORE_EXPORT QgsMapRenderer : public QObject
~QgsMapRenderer();

//! starts rendering
void render( QPainter* painter, double* forceScaleFactor = 0 );
//! @ param forceWidthScale Force a specific scale factor for line widths and marker sizes. Automatically calculated from output device DPI if 0
void render( QPainter* painter, double* forceWidthScale = 0 );

//! sets extent and checks whether suitable (returns false if not)
bool setExtent( const QgsRectangle& extent );
Expand Down

0 comments on commit 94984a3

Please sign in to comment.