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

TableRef: add an initial dirty range for newly inserted ScDBData

... so table column names get updated in the next run.

Change-Id: I998d610a3df14fb80b6222fd1a5b61847810a722
üst 757996aa
...@@ -1042,6 +1042,13 @@ ScDBCollection::NamedDBs::NamedDBs(const NamedDBs& r) ...@@ -1042,6 +1042,13 @@ ScDBCollection::NamedDBs::NamedDBs(const NamedDBs& r)
{ {
p->SetContainer( this); p->SetContainer( this);
p->StartTableColumnNamesListener(); // needs the container be set already p->StartTableColumnNamesListener(); // needs the container be set already
if (p->AreTableColumnNamesDirty())
{
// Refresh table column names in next round.
ScRange aHeader( p->GetHeaderArea());
if (aHeader.IsValid())
maDirtyTableColumnNames.Join( aHeader);
}
} }
} }
} }
...@@ -1102,6 +1109,13 @@ bool ScDBCollection::NamedDBs::insert(ScDBData* p) ...@@ -1102,6 +1109,13 @@ bool ScDBCollection::NamedDBs::insert(ScDBData* p)
{ {
p->SetContainer( this); p->SetContainer( this);
p->StartTableColumnNamesListener(); // needs the container be set already p->StartTableColumnNamesListener(); // needs the container be set already
if (p->AreTableColumnNamesDirty())
{
// Refresh table column names in next round.
ScRange aHeader( p->GetHeaderArea());
if (aHeader.IsValid())
maDirtyTableColumnNames.Join( aHeader);
}
/* TODO: shouldn't the import refresh not be setup for /* TODO: shouldn't the import refresh not be setup for
* clipboard/undo documents? It was already like this before.. */ * clipboard/undo documents? It was already like this before.. */
......
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