mapeditor.cpp
changeset 450 beb875135811
parent 447 72afe12da1c8
child 473 8b9cfc26638c
     1.1 --- a/mapeditor.cpp	Tue Apr 10 13:22:55 2007 +0000
     1.2 +++ b/mapeditor.cpp	Wed Apr 11 09:21:14 2007 +0000
     1.3 @@ -536,7 +536,6 @@
     1.4  		}	
     1.5  	} else if (com=="colorSubtree")
     1.6  	{
     1.7 -		cout << "atom="<< atom.ascii()<<endl;
     1.8  		if (xelection.isEmpty())
     1.9  		{
    1.10  			parser.setError (Aborted,"Nothing selected");
    1.11 @@ -1356,7 +1355,7 @@
    1.12  QPixmap MapEditor::getPixmap()
    1.13  {
    1.14  	QRectF mapRect=mapCenter->getTotalBBox();
    1.15 -	QPixmap pix((int)mapRect.width(),(int)mapRect.height());
    1.16 +	QPixmap pix((int)mapRect.width()+2,(int)mapRect.height()+2);
    1.17  	QPainter pp (&pix);
    1.18  	
    1.19  	pp.setRenderHints(renderHints());
    1.20 @@ -1365,13 +1364,9 @@
    1.21  	xelection.unselect();
    1.22  
    1.23  	mapScene->render (	&pp, 
    1.24 -		QRectF(0,0,mapRect.width(),mapRect.height()),
    1.25 +		QRectF(0,0,mapRect.width()+2,mapRect.height()+2),
    1.26  		QRectF(mapRect.x(),mapRect.y(),mapRect.width(),mapRect.height() ));
    1.27  
    1.28 -//	mapScene->render(&pp);	// draw scene to painter
    1.29 -
    1.30 -
    1.31 -
    1.32  	// Restore selection
    1.33  	xelection.reselect();
    1.34