Skip to content

Commit ca57526

Browse files
author
rblazek
committed
fixed reprojection of extent
git-svn-id: http://svn.osgeo.org/qgis/trunk@5163 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent fa0fae6 commit ca57526

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/composer/qgscomposermap.cpp

+9-1
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,16 @@ void QgsComposerMap::draw ( QPainter *painter, QgsRect *extent, QgsMapToPixel *t
120120
widthScale *= mComposition->viewScale();
121121
}
122122
double symbolScale = mSymbolScale * mComposition->scale();
123-
vector->draw( painter, extent, transform, widthScale, symbolScale);
124123

124+
QgsRect r1, r2;
125+
r1 = *extent;
126+
bool split = layer->projectExtent(r1, r2);
127+
vector->draw( painter, &r1, transform, widthScale, symbolScale);
128+
129+
if ( split )
130+
{
131+
vector->draw( painter, &r2, transform, widthScale, symbolScale);
132+
}
125133
} else {
126134
// raster
127135
if ( plotStyle() == QgsComposition::Print || plotStyle() == QgsComposition::Postscript ) {

0 commit comments

Comments
 (0)