diff options
author | Rick Pasetto <rick@lindenlab.com> | 2010-01-22 10:02:13 -0800 |
---|---|---|
committer | Rick Pasetto <rick@lindenlab.com> | 2010-01-22 10:02:13 -0800 |
commit | fa891c062ef66410123c66de1ef67b7dcef327db (patch) | |
tree | d0badf37ffd261c6732744be03ab76cabf523c5e /indra/llimage/llimage.cpp | |
parent | 84dfa02baf4aff336ec467acbe647618e9b4b21a (diff) | |
parent | dc47f52e9f5ab095737fedf68d22c8228140c71b (diff) |
Automated merge with ssh://hg.lindenlab.com/viewer/viewer-2-0
Diffstat (limited to 'indra/llimage/llimage.cpp')
-rw-r--r-- | indra/llimage/llimage.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llimage/llimage.cpp b/indra/llimage/llimage.cpp index 575ad5363d..e02be6c8c1 100644 --- a/indra/llimage/llimage.cpp +++ b/indra/llimage/llimage.cpp @@ -668,6 +668,12 @@ void LLImageRaw::fill( const LLColor4U& color ) // Src and dst can be any size. Src and dst can each have 3 or 4 components. void LLImageRaw::copy(LLImageRaw* src) { + if (!src) + { + llwarns << "LLImageRaw::copy called with a null src pointer" << llendl; + return; + } + LLImageRaw* dst = this; // Just for clarity. llassert( (3 == src->getComponents()) || (4 == src->getComponents()) ); |