Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Black Dragon Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Logue
Black Dragon Viewer
Commits
f22e5df8
Commit
f22e5df8
authored
12 years ago
by
Seth ProductEngine
Browse files
Options
Downloads
Patches
Plain Diff
CHUI-172 WIP Fixed drawing the nearby chat toast contents.
Fixed warnings when creating a nearby chat toast.
parent
cd7d499e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llchatitemscontainerctrl.cpp
+11
-2
11 additions, 2 deletions
indra/newview/llchatitemscontainerctrl.cpp
with
11 additions
and
2 deletions
indra/newview/llchatitemscontainerctrl.cpp
+
11
−
2
View file @
f22e5df8
...
...
@@ -96,8 +96,15 @@ void LLNearbyChatToastPanel::reshape (S32 width, S32 height, BOOL called_from_p
{
LLPanel
::
reshape
(
width
,
height
,
called_from_parent
);
LLUICtrl
*
msg_text
=
getChild
<
LLUICtrl
>
(
"msg_text"
,
false
);
LLUICtrl
*
icon
=
getChild
<
LLUICtrl
>
(
"avatar_icon"
,
false
);
// reshape() may be called from LLView::initFromParams() before the children are created.
// We call findChild() instead of getChild() here to avoid creating dummy controls.
LLUICtrl
*
msg_text
=
findChild
<
LLUICtrl
>
(
"msg_text"
,
false
);
LLUICtrl
*
icon
=
findChild
<
LLUICtrl
>
(
"avatar_icon"
,
false
);
if
(
!
msg_text
||
!
icon
)
{
return
;
}
LLRect
msg_text_rect
=
msg_text
->
getRect
();
LLRect
avatar_rect
=
icon
->
getRect
();
...
...
@@ -355,6 +362,8 @@ BOOL LLNearbyChatToastPanel::handleRightMouseDown(S32 x, S32 y, MASK mask)
}
void
LLNearbyChatToastPanel
::
draw
()
{
LLPanel
::
draw
();
if
(
mIsDirty
)
{
LLAvatarIconCtrl
*
icon
=
getChild
<
LLAvatarIconCtrl
>
(
"avatar_icon"
,
false
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment