Skip to content

Commit

Permalink
fixed reprojection of extent
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5163 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Apr 4, 2006
1 parent fa0fae6 commit ca57526
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/composer/qgscomposermap.cpp
Expand Up @@ -120,8 +120,16 @@ void QgsComposerMap::draw ( QPainter *painter, QgsRect *extent, QgsMapToPixel *t
widthScale *= mComposition->viewScale();
}
double symbolScale = mSymbolScale * mComposition->scale();
vector->draw( painter, extent, transform, widthScale, symbolScale);

QgsRect r1, r2;
r1 = *extent;
bool split = layer->projectExtent(r1, r2);
vector->draw( painter, &r1, transform, widthScale, symbolScale);

if ( split )
{
vector->draw( painter, &r2, transform, widthScale, symbolScale);
}
} else {
// raster
if ( plotStyle() == QgsComposition::Print || plotStyle() == QgsComposition::Postscript ) {
Expand Down

0 comments on commit ca57526

Please sign in to comment.