Resolves: fdo#70358 crash when deleting tables
Change-Id: I87282e363425a1bb6d9ab92e07717f66ee56a6c5
This commit is contained in:
@@ -2607,8 +2607,15 @@ SwTwips SwLayoutFrm::ShrinkFrm( SwTwips nDist, sal_Bool bTst, sal_Bool bInfo )
|
|||||||
{
|
{
|
||||||
_InvalidateAll();
|
_InvalidateAll();
|
||||||
InvalidatePage( pPage );
|
InvalidatePage( pPage );
|
||||||
const SvxGraphicPosition ePos = GetFmt()->GetBackground().GetGraphicPos();
|
bool bCompletePaint = true;
|
||||||
if ( GPOS_NONE != ePos && GPOS_TILED != ePos )
|
const SwFrmFmt* pFmt = GetFmt();
|
||||||
|
if (pFmt)
|
||||||
|
{
|
||||||
|
const SvxGraphicPosition ePos = pFmt->GetBackground().GetGraphicPos();
|
||||||
|
if ( GPOS_NONE == ePos || GPOS_TILED == ePos )
|
||||||
|
bCompletePaint = false;
|
||||||
|
}
|
||||||
|
if (bCompletePaint)
|
||||||
SetCompletePaint();
|
SetCompletePaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user