Added MiniPreviewPixmap to Template.

This commit is contained in:
Jim Evins
2013-11-04 23:58:03 -05:00
parent 2843d8ccda
commit fe4595bde0
17 changed files with 263 additions and 34 deletions
+6 -20
View File
@@ -24,31 +24,17 @@
namespace libglabels
{
int Point::compare( const Point &a, const Point &b )
bool Point::operator<( const Point &other ) const
{
if ( a.mY < b.mY )
if ( mY < other.mY )
{
return -1;
return true;
}
else if ( a.mY > b.mY )
else if ( mY == other.mY )
{
return 1;
}
else
{
if ( a.mX < b.mX )
{
return -1;
}
else if ( a.mX > b.mX )
{
return 1;
}
else
{
return 0; /* hopefully 2 label frames won't have the same origin. */
}
return mX < other.mX;
}
return false;
}
}