Kaydet (Commit) 69d166a0 authored tarafından Caolán McNamara's avatar Caolán McNamara

more use of references to avoid crashing

Change-Id: I03748695efbe17d59aba09f88d5c6fcd174113c9
üst 00bccc56
......@@ -568,8 +568,8 @@ void LwpCellLayout::RegisterDefaultCell()
*/
void LwpCellLayout::RegisterStyle()
{
LwpVirtualLayout * pParent = dynamic_cast<LwpVirtualLayout *>(GetParent().obj().get());
if (!pParent || pParent->GetLayoutType() != LWP_ROW_LAYOUT)
rtl::Reference<LwpVirtualLayout> xParent(dynamic_cast<LwpVirtualLayout *>(GetParent().obj().get()));
if (!xParent.is() || xParent->GetLayoutType() != LWP_ROW_LAYOUT)
{
// default cell layout, we must register 4 styles for it
RegisterDefaultCell();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment