Index: trunk/src/gfx/texture_atlas.cc
===================================================================
--- trunk/src/gfx/texture_atlas.cc	(revision 142)
+++ trunk/src/gfx/texture_atlas.cc	(revision 144)
@@ -87,5 +87,5 @@
 	glm::ivec3 node = m_nodes[ index ];
 
-	if ( (  node.x + size.x ) > ( m_size.x - 1 ) ) 
+	if ( (  node.x + size.x ) > ( m_size.x ) ) 
 	{
 		return -1;
@@ -102,5 +102,5 @@
 			y = node.y;
 		}
-		if( (y + size.y) > (m_size.y-1) )
+		if( (y + size.y) > ( m_size.y ) )
 		{
 			return -1;
