if (toinsert_.y1 > toinsert_.y2) { std::swap(toinsert_.y1, toinsert_.y2); }  if (toinsert_.x1 > toinsert_.x2) { std::swap(toinsert_.x1, toinsert_.x2); }
	virtual void processNode( const cElement* Tag )	{		QString TagName = Tag->name();		QString Value = Tag->value();		// <rectangle x1="0" x2="1000" y1="0" y2="500" />		if ( TagName == "rectangle" )		{			rect_st toinsert_;			toinsert_.x1 = Tag->getAttribute( "x1" ).toUShort();			toinsert_.x2 = Tag->getAttribute( "x2" ).toUShort();			toinsert_.y1 = Tag->getAttribute( "y1" ).toUShort();			toinsert_.y2 = Tag->getAttribute( "y2" ).toUShort();			toinsert_.map = Tag->getAttribute( "map" ).toUShort();			this->rectangles_.push_back( toinsert_ );		}		else if ( TagName == "region" && Tag->hasAttribute( "id" ) )			this->subregions_.push_back( new cBaseRegion( Tag, this ) );	}