diff options
author | Steve Bennetts <steve@lindenlab.com> | 2009-11-29 18:25:03 -0800 |
---|---|---|
committer | Steve Bennetts <steve@lindenlab.com> | 2009-11-29 18:25:03 -0800 |
commit | a7549d6fe5b36b447f7e6f58387711576f9c2f63 (patch) | |
tree | 63d81cf896b107cf35b3eecabefc032e021574df /indra/llui/llresizebar.cpp | |
parent | 5bff5d28ee0cd6b2d17bf1676eecb0ae262f1f48 (diff) | |
parent | f0426b924f543c62268ac5098c0c2c6a44e68084 (diff) |
Merge
Diffstat (limited to 'indra/llui/llresizebar.cpp')
-rw-r--r-- | indra/llui/llresizebar.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llui/llresizebar.cpp b/indra/llui/llresizebar.cpp index a7cf9be277..0c46edf300 100644 --- a/indra/llui/llresizebar.cpp +++ b/indra/llui/llresizebar.cpp @@ -144,9 +144,10 @@ BOOL LLResizeBar::handleHover(S32 x, S32 y, MASK mask) if( valid_rect.localPointInRect( screen_x, screen_y ) && mResizingView ) { // undock floater when user resize it - if (((LLFloater*)getParent())->isDocked()) + LLFloater* parent = dynamic_cast<LLFloater*>( getParent()); + if (parent && parent->isDocked()) { - ((LLFloater*)getParent())->setDocked(false, false); + parent->setDocked( false, false); } // Resize the parent |