Added (_data || rhs._data) extra qualify to Image::compare is data equal test.

This commit is contained in:
Robert Osfield
2005-11-17 09:20:58 +00:00
parent 7f19c7833e
commit 19c1863432

View File

@@ -102,7 +102,7 @@ int Image::compare(const Image& rhs) const
COMPARE_StateAttribute_Parameter(_modifiedCount)
// same buffer + same parameters = same image
if (_data == rhs._data) return 0;
if ((_data || rhs._data) && (_data == rhs._data)) return 0;
// slowest comparison at the bottom!
COMPARE_StateAttribute_Parameter(getFileName())