diff options
-rw-r--r-- | sw/source/ui/dbui/dbinsdlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx index dba017353898..a5f6db6705cc 100644 --- a/sw/source/ui/dbui/dbinsdlg.cxx +++ b/sw/source/ui/dbui/dbinsdlg.cxx @@ -1002,8 +1002,8 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection, { SwInsDBColumn aSrch( aLbTableCol.GetEntry( n ), 0 ); SwInsDBColumns::const_iterator it = aDBColumns.find( &aSrch ); - if( it != aDBColumns.end() ) - aColFlds[ n ] = *it; + if (it != aDBColumns.end()) + aColFlds.push_back(*it); else { OSL_ENSURE( !this, "database column not found" ); } |