fixed panning bug

git-svn-id: http://svn.osgeo.org/qgis/trunk@101 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2002-08-14 05:48:43 +00:00
parent 62ee8cb764
commit 9ad2b7a175

View File

@ -257,7 +257,8 @@ void QgsMapCanvas::mousePressEvent(QMouseEvent * e)
// create a pixmap to use in panning the map canvas
tempPanImage = new QPixmap();
*tempPanImage = QPixmap::grabWidget(this);
//*tempPanImage = QPixmap::grabWidget(this);
*tempPanImage = QPixmap::grabWindow(winId());
backgroundFill = new QPixmap(tempPanImage->width(), tempPanImage->height());