summaryrefslogtreecommitdiff
path: root/indra/newview/lldebugview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lldebugview.cpp')
-rw-r--r--indra/newview/lldebugview.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/indra/newview/lldebugview.cpp b/indra/newview/lldebugview.cpp
index 92ac336d0d..7d3170cb76 100644
--- a/indra/newview/lldebugview.cpp
+++ b/indra/newview/lldebugview.cpp
@@ -72,13 +72,6 @@ LLDebugView::~LLDebugView()
gTextureCategoryView = NULL;
}
-BOOL LLDebugView::postBuild()
-{
- mFloaterSnapRegion = getRootView()->getChildView("floater_snap_region");
-
- return TRUE;
-}
-
void LLDebugView::init()
{
LLRect r;
@@ -157,6 +150,11 @@ void LLDebugView::init()
void LLDebugView::draw()
{
+ if (mFloaterSnapRegion == NULL)
+ {
+ mFloaterSnapRegion = getRootView()->getChildView("floater_snap_region");
+ }
+
LLRect debug_rect;
mFloaterSnapRegion->localRectToOtherView(mFloaterSnapRegion->getLocalRect(), &debug_rect, getParent());