Skip to content
Permalink
Browse files

fixed reprojection of extent

git-svn-id: http://svn.osgeo.org/qgis/trunk@5163 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek
rblazek committed Apr 4, 2006
1 parent fa0fae6 commit ca57526b159a1f7b44ca872d2e75e6b08f963c58
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 ca57526

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