Added similar list to NewLabelDialog.

This commit is contained in:
Jim Evins
2013-11-15 21:58:28 -05:00
parent 932ab5b65b
commit 1f5e555e00
6 changed files with 58 additions and 9 deletions
+5 -5
View File
@@ -156,19 +156,19 @@ namespace libglabels
}
bool Template::isSimilarTo( const Template &other ) const
bool Template::isSimilarTo( const Template *other ) const
{
// Does page size match?
if ( (mPaperId != other.mPaperId) ||
(mPageWidth != other.mPageWidth ) ||
(mPageHeight != other.mPageHeight ) )
if ( (mPaperId != other->mPaperId) ||
(mPageWidth != other->mPageWidth ) ||
(mPageHeight != other->mPageHeight ) )
{
return false;
}
// Are frames similar
Frame *frame1 = mFrames.first();
Frame *frame2 = other.mFrames.first();
Frame *frame2 = other->mFrames.first();
if ( !frame1->isSimilarTo( frame2 ) )
{
return false;