 					topLeft, topRight, bottomRight, bottomLeft, SIDE_BOTTOM);
 			}
 			
-			if (borderWidth.left > 0 && borderStyle.left != 'none' && borderColor.left != 0)
+			if (borderWidth.left > 0 && borderStyle.left != 'none' && borderColor.left)
 			{
 				topLeft.x = 0;
 				topLeft.y = 0;

					topLeft, topRight, bottomRight, bottomLeft, SIDE_RIGHT);
			}
	
			if (borderWidth.bottom > 0 && borderStyle.bottom != 'none' && borderColor.bottom != 0)
			{
				topLeft.x = 0;
				topLeft.y = m_height;

					topLeft, topRight, bottomRight, bottomLeft, SIDE_TOP);
			}
			
			if (borderWidth.right > 0 && borderStyle.right != 'none' && borderColor.right)
			{
				topLeft.x = m_width;
				topLeft.y = 0;
