Kaydet (Commit) e4509eea authored tarafından Miklos Vajna's avatar Miklos Vajna

n#751313 SwCallLink: avoid redrawing complete rows without nested tables

üst 071c4d56
...@@ -100,8 +100,21 @@ void lcl_notifyRow(const SwCntntNode* pNode, SwCrsrShell& rShell) ...@@ -100,8 +100,21 @@ void lcl_notifyRow(const SwCntntNode* pNode, SwCrsrShell& rShell)
if ( pRow ) if ( pRow )
{ {
const SwTableLine* pLine = pRow->GetTabLine( ); const SwTableLine* pLine = pRow->GetTabLine( );
SwFmtFrmSize pSize = pLine->GetFrmFmt( )->GetFrmSize( ); // Avoid redrawing the complete row if there are no nested tables
pRow->ModifyNotification( NULL, &pSize ); bool bHasTable = false;
SwFrm *pCell = pRow->GetLower();
for (; pCell && !bHasTable; pCell = pCell->GetNext())
{
SwFrm *pContent = pCell->GetLower();
for (; pContent && !bHasTable; pContent = pContent->GetNext())
if (pContent->GetType() == FRM_TAB)
bHasTable = true;
}
if (bHasTable)
{
SwFmtFrmSize pSize = pLine->GetFrmFmt()->GetFrmSize();
pRow->ModifyNotification(NULL, &pSize);
}
} }
} }
} }
......
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