diff options
| author | James Cook <james@lindenlab.com> | 2009-12-16 16:04:26 -0800 |
|---|---|---|
| committer | James Cook <james@lindenlab.com> | 2009-12-16 16:04:26 -0800 |
| commit | 4c0d5200bc7a53537f9ee7028e74c1feb4abc52e (patch) | |
| tree | 85a48a0e970c5376ab216d86b068db303ead30af /indra/llui/lluiimage.cpp | |
| parent | 699d038af4edf9e854525ea380905737b645ebfc (diff) | |
| parent | e8fe81c4fcbec173606b5ad635e0b774e4d8b24b (diff) | |
Merge
Diffstat (limited to 'indra/llui/lluiimage.cpp')
| -rw-r--r-- | indra/llui/lluiimage.cpp | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/indra/llui/lluiimage.cpp b/indra/llui/lluiimage.cpp index 1dfc281d93..f941f391eb 100644 --- a/indra/llui/lluiimage.cpp +++ b/indra/llui/lluiimage.cpp @@ -161,32 +161,22 @@ void LLUIImage::onImageLoaded() namespace LLInitParam { - void TypedParam<LLUIImage*>::setValueFromBlock() const + LLUIImage* TypedParam<LLUIImage*>::getValueFromBlock() const { // The keyword "none" is specifically requesting a null image // do not default to current value. Used to overwrite template images. if (name() == "none") { - mData.mValue = NULL; + return NULL; } LLUIImage* imagep = LLUI::getUIImage(name()); - if (imagep) + if (!imagep) { - mData.mValue = imagep; - } - } - - void TypedParam<LLUIImage*>::setBlockFromValue() - { - if (mData.mValue == NULL) - { - name = "none"; - } - else - { - name = mData.mValue->getName(); + // default to current value + imagep = mData.mValue; } + return imagep; } |
