[Igarden-commit] CommonSource/YAAFExtensions RGPatternCache.cpp, 1.8.2.1, 1.8.2.2
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2007-01-20 02:03:12
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv17352 Modified Files: Tag: Release_branch_v1 RGPatternCache.cpp Log Message: Don't crash if no picture present Index: RGPatternCache.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGPatternCache.cpp,v retrieving revision 1.8.2.1 retrieving revision 1.8.2.2 diff -C2 -d -r1.8.2.1 -r1.8.2.2 *** RGPatternCache.cpp 17 Jan 2007 14:05:13 -0000 1.8.2.1 --- RGPatternCache.cpp 20 Jan 2007 02:03:10 -0000 1.8.2.2 *************** *** 106,122 **** draw.SetForeColor(KXGColorBlack); ! for( y = 0; y < BG_REPLIC; y++) { ! for(x = 0; x < BG_REPLIC; x++) { ! destRect.left = x * scaleSize.h; ! destRect.top = y * scaleSize.v; ! destRect.right = destRect.left + scaleSize.h; ! destRect.bottom = destRect.top + scaleSize.v; ! onePat->CopyImage(entry->_image, destRect); } } ! delete onePat; ! long trimWidth, trimHeight; --- 106,125 ---- draw.SetForeColor(KXGColorBlack); ! if(onePat != NULL) { ! for( y = 0; y < BG_REPLIC; y++) { ! for(x = 0; x < BG_REPLIC; x++) ! { ! destRect.left = x * scaleSize.h; ! destRect.top = y * scaleSize.v; ! destRect.right = destRect.left + scaleSize.h; ! destRect.bottom = destRect.top + scaleSize.v; ! onePat->CopyImage(entry->_image, destRect); ! } } + delete onePat; } ! long trimWidth, trimHeight; |