diff --git a/src/composer/qgscomposermap.cpp b/src/composer/qgscomposermap.cpp index 66779382148..eb285a2e48c 100644 --- a/src/composer/qgscomposermap.cpp +++ b/src/composer/qgscomposermap.cpp @@ -294,7 +294,7 @@ void QgsComposerMap::draw ( QPainter & painter ) painter.setBrush( Qt::NoBrush ); painter.save(); painter.translate ( Q3CanvasRectangle::x(), Q3CanvasRectangle::y() ); - painter.drawRect ( 0, 0, Q3CanvasRectangle::width()+1, Q3CanvasRectangle::height()+1 ); // is it right? + painter.drawRect ( 0, 0, Q3CanvasRectangle::width(), Q3CanvasRectangle::height() ); painter.restore(); } diff --git a/src/gui/qgsmapcanvas.cpp b/src/gui/qgsmapcanvas.cpp index fa6e1dec01a..d35ebf0b5fe 100644 --- a/src/gui/qgsmapcanvas.cpp +++ b/src/gui/qgsmapcanvas.cpp @@ -699,13 +699,11 @@ void QgsMapCanvas::resizeEvent(QResizeEvent * e) // Adjust the size (in pixels) of that we draw by the margins in // the widget that the drawing eventually gets placed in. In my testing - // the margin was 2 pixels on each border. Add 1 more pixel just to - // be sure that the drawn map appears fully within the margins in - // the widget. + // the margin was 2 pixels on each border. int top, bottom, right, left; getContentsMargins(&left, &top, &right, &bottom); - width = width - (left + right + 1); - height = height - (top + bottom + 1); + width = width - (left + right); + height = height - (top + bottom); mMap->resize(/*e->size()*/ QSize(width,height));