summaryrefslogtreecommitdiff
path: root/indra/llui/lllineeditor.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-09-28 14:23:32 -0700
committerRichard Linden <none@none>2010-09-28 14:23:32 -0700
commitabc18951c6b639bcbacae2dd83a13ef8e02de85d (patch)
tree046a2f96cd596d33d0e91853917b033b624cef89 /indra/llui/lllineeditor.cpp
parentc4cfd1df44c1a6784f7780b03267203400804c48 (diff)
fix for crash when background image not specified for line editor
Diffstat (limited to 'indra/llui/lllineeditor.cpp')
-rw-r--r--indra/llui/lllineeditor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp
index a1fc977ce1..16e86a8eac 100644
--- a/indra/llui/lllineeditor.cpp
+++ b/indra/llui/lllineeditor.cpp
@@ -1491,6 +1491,8 @@ void LLLineEditor::drawBackground()
{
image = mBgImage;
}
+
+ if (!image) return;
F32 alpha = getDrawContext().mAlpha;
// optionally draw programmatic border