renaissance1: #i107215# Small fixes.

This commit is contained in:
Andre Fischer<Andre.W.Fischer
2010-06-02 14:02:07 +02:00
parent 4da1188ef4
commit 3660c4324c
2 changed files with 4 additions and 2 deletions

View File

@@ -53,7 +53,9 @@ public:
Representative (const Representative& rOther)
: maBitmap(rOther.maBitmap), mbIsExcluded(rOther.mbIsExcluded) {}
Representative operator= (Representative& rOther)
{ maBitmap = rOther.maBitmap; mbIsExcluded = rOther.mbIsExcluded; }
{ if (&rOther != this) {maBitmap = rOther.maBitmap; mbIsExcluded = rOther.mbIsExcluded; }
return *this;
}
Bitmap maBitmap;
bool mbIsExcluded;

View File

@@ -110,7 +110,7 @@ void FramePainter::AdaptColor (
BitmapReadAccess* pReadAccess = maCenter.maBitmap.GetBitmap().AcquireReadAccess();
if (pReadAccess == NULL)
return;
const Color aSourceColor (pReadAccess->GetColor(0,0));
const Color aSourceColor = pReadAccess->GetColor(0,0);
maCenter.maBitmap.GetBitmap().ReleaseAccess(pReadAccess);
// Erase the center bitmap.