Skip to content
Permalink
Browse files

fixed reprojection of extent

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5163 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek
rblazek committed Apr 4, 2006
1 parent 4050734 commit 05d5a58b93535fe037471a33cffed60ce174a99b
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/composer/qgscomposermap.cpp
@@ -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 ) {

0 comments on commit 05d5a58

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