# HG changeset patch
# User insilmaril
# Date 1201879715 0
# Node ID 6a5e2c27f8a4da1b1723da9ba4016812844cbb31
# Parent  d0e047b8d412ef51324ee53190087bd211e48fbf
Added brasilian translation by Amadeu JĂșnior

diff -r d0e047b8d412 -r 6a5e2c27f8a4 branchobj.cpp
--- a/branchobj.cpp	Wed Jan 16 15:45:20 2008 +0000
+++ b/branchobj.cpp	Fri Feb 01 15:28:35 2008 +0000
@@ -1424,6 +1424,28 @@
 }
 
 
+QPolygonF BranchObj::shape()
+{
+	QPolygonF p;
+
+	QRectF r=getTotalBBox();
+	if (orientation==LinkableMapObj::LeftOfCenter)
+		p   <<r.bottomLeft()
+			<<r.topLeft()
+			<<QPointF (bbox.topLeft().x(), r.topLeft().y() )
+			<<bbox.topRight()
+			<<bbox.bottomRight()
+			<<QPointF (bbox.bottomLeft().x(), r.bottomLeft().y() ) ;
+	else		
+		p   <<r.bottomRight()
+			<<r.topRight()
+			<<QPointF (bbox.topRight().x(), r.topRight().y() )
+			<<bbox.topLeft()
+			<<bbox.bottomLeft()
+			<<QPointF (bbox.bottomRight().x(), r.bottomRight().y() ) ;
+	return p;
+}
+
 QRectF BranchObj::getTotalBBox()
 {
 	QRectF r=bbox;
diff -r d0e047b8d412 -r 6a5e2c27f8a4 branchobj.h
--- a/branchobj.h	Wed Jan 16 15:45:20 2008 +0000
+++ b/branchobj.h	Fri Feb 01 15:28:35 2008 +0000
@@ -120,6 +120,7 @@
 	virtual void reposition();
 	virtual void unsetAllRepositionRequests();
 
+	virtual QPolygonF shape();				//!< Returns arbitrary bounding polygon
 	virtual QRectF getTotalBBox();			// return BBox including childs			
 	virtual QRectF getBBoxSizeWithChilds();	// return size of BBox including childs  
 	virtual void calcBBoxSizeWithChilds();	// calc size of  BBox including childs recursivly
diff -r d0e047b8d412 -r 6a5e2c27f8a4 mapcenterobj.cpp
--- a/mapcenterobj.cpp	Wed Jan 16 15:45:20 2008 +0000
+++ b/mapcenterobj.cpp	Fri Feb 01 15:28:35 2008 +0000
@@ -22,6 +22,7 @@
 MapCenterObj::~MapCenterObj() 
 {
 //    cout << "Destr MapCenterObj\n";
+	clear();
 }	
 
 void MapCenterObj::clear()