Kaydet (Commit) ca59efcf authored tarafından Eike Rathke's avatar Eike Rathke

TableRef: add entire header range to dirty list on address notification

Change-Id: I0a0fb83a1e72d73a517eabaa3c8dc1b2228848d1
üst e74bc6b9
......@@ -888,7 +888,21 @@ void ScDBData::Notify( const SfxHint& rHint )
{
mbTableColumnNamesDirty = true;
if (mpContainer)
mpContainer->GetDirtyTableColumnNames().Join( pScHint->GetAddress());
{
// Only one cell of a range is broadcasted per area listener if
// multiple cells are affected. Expand the range to what this is
// listening to. Broadcasted address outside should not happen,
// but.. let it trigger a refresh if.
ScRange aHeaderRange( GetHeaderArea());
if (aHeaderRange.IsValid())
{
mpContainer->GetDirtyTableColumnNames().Join( aHeaderRange);
if (!aHeaderRange.In( pScHint->GetAddress()))
mpContainer->GetDirtyTableColumnNames().Join( pScHint->GetAddress());
}
else
mpContainer->GetDirtyTableColumnNames().Join( pScHint->GetAddress());
}
}
// Do not refresh column names here, which might trigger unwanted
......
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