Kaydet (Commit) 8f2cfef6 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) David Tardon

guard against missing geometry

Change-Id: I6b2945f1d5a1654f6b5d6a5f5287b4cb9514d97c
(cherry picked from commit d4d24786)
(cherry picked from commit 6a9f9191)
Reviewed-on: https://gerrit.libreoffice.org/20596Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst 7638b0a9
......@@ -1044,10 +1044,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