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

guard against missing geometry

Change-Id: I6b2945f1d5a1654f6b5d6a5f5287b4cb9514d97c
üst 65deab68
......@@ -997,10 +997,10 @@ sal_Int32 LwpMiddleLayout::DetermineWidth()
{
assert(false);
}
else
else if (LwpLayoutGeometry* pGeo = GetGeometry())
{
m_nAttributes3 |= STYLE3_WIDTHVALID;
return GetGeometry()->GetWidth();
return pGeo->GetWidth();
}
return 0;
}
......
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