diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx index 42e7af795e73..ae7fdfae4326 100644 --- a/sw/source/core/layout/fly.cxx +++ b/sw/source/core/layout/fly.cxx @@ -2136,7 +2136,7 @@ bool SwFlyFrame::IsShowUnfloatButton(SwWrtShell* pWrtSh) const { pTable = static_cast(pLower); ++nTableCount; - if (nTableCount > 1 || pTable == nullptr) + if (nTableCount > 1) return false; }