diff options
author | Richard Nelson <none@none> | 2010-08-20 10:15:37 -0700 |
---|---|---|
committer | Richard Nelson <none@none> | 2010-08-20 10:15:37 -0700 |
commit | 6bbd490107abe162c114ccd990636ae6b16f46f8 (patch) | |
tree | 13d7f4c1da1f28fe7ed8b73bcea82cea35ba9526 /indra/newview/llhints.cpp | |
parent | 48e0087ce3096e3ebe778124cdb21b87eedcc07c (diff) | |
parent | 02d8197019dcecec7aee80a104c4644ddb4807ca (diff) |
merge
Diffstat (limited to 'indra/newview/llhints.cpp')
-rw-r--r-- | indra/newview/llhints.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/newview/llhints.cpp b/indra/newview/llhints.cpp index c4cea86a31..e0ced5caeb 100644 --- a/indra/newview/llhints.cpp +++ b/indra/newview/llhints.cpp @@ -137,9 +137,8 @@ static LLDefaultChildRegistry::Register<LLHintPopup> r("hint_popup"); LLHintPopup::LLHintPopup(const LLHintPopup::Params& p) : mNotification(p.notification), - mDirection(p.target_params.direction), + mDirection(TOP), mDistance(p.distance), - mTarget(p.target_params.target), mArrowLeft(p.left_arrow), mArrowUp(p.up_arrow), mArrowRight(p.right_arrow), @@ -153,7 +152,12 @@ LLHintPopup::LLHintPopup(const LLHintPopup::Params& p) mFadeOutTime(p.fade_out_time), LLPanel(p) { - buildPanel(this, "panel_hint.xml", NULL, p); + if (p.target_params.isProvided()) + { + mDirection = p.target_params.direction; + mTarget = p.target_params.target; + } + buildFromFile( "panel_hint.xml", NULL, p); } BOOL LLHintPopup::postBuild() |