diff options
| author | Loren Shih <seraph@lindenlab.com> | 2010-01-22 14:55:39 -0500 |
|---|---|---|
| committer | Loren Shih <seraph@lindenlab.com> | 2010-01-22 14:55:39 -0500 |
| commit | 3b0ba0c2d7f48a5d1cf2adcbc87c9eaf4d8f6564 (patch) | |
| tree | dc2c080606407dc5f9f2c872d3dd40a465acecf8 /indra/llimage/llimage.cpp | |
| parent | 1f896d2d58d9c150d3981f253e81898afa999c2c (diff) | |
| parent | fa891c062ef66410123c66de1ef67b7dcef327db (diff) | |
automated merge viewer2.0->viewer2.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()) ); |
