[Libreoffice-commits] core.git: sw/source
Michael Stahl
mstahl at redhat.com
Tue Feb 12 06:05:51 PST 2013
sw/source/ui/dbui/dbinsdlg.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit cbc722733bb272b0f26efec09b478bed9a3cdb96
Author: Michael Stahl <mstahl at redhat.com>
Date: Tue Feb 12 14:48:56 2013 +0100
fdo#60092: fix STL regression in SwInsertDBColAutoPilot::DataToDoc
(regression from f7d681dc34e60eb8532403079d007ca1250f4941)
Change-Id: Ida92854efe6ddffffb8fe10e5ef1f42c53747f40
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index dba0173..a5f6db6 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" );
}
More information about the Libreoffice-commits
mailing list