diff options
Diffstat (limited to 'sw/source/ui/dbui/dbinsdlg.cxx')
-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 c0fb5669a089..1bc236dccaa6 100644 --- a/sw/source/ui/dbui/dbinsdlg.cxx +++ b/sw/source/ui/dbui/dbinsdlg.cxx @@ -592,8 +592,8 @@ IMPL_LINK( SwInsertDBColAutoPilot, TableToFromHdl, Button*, pButton, void ) if( !aField.isEmpty() ) { OUString aStr( m_pEdDbText->GetText() ); - sal_Int32 nPos = m_pEdDbText->GetSelection().Min(); - const sal_Int32 nSel = m_pEdDbText->GetSelection().Max() - nPos; + sal_Int32 nPos = static_cast<sal_Int32>(m_pEdDbText->GetSelection().Min()); + const sal_Int32 nSel = static_cast<sal_Int32>(m_pEdDbText->GetSelection().Max()) - nPos; if( nSel ) // first delete the existing selection aStr = aStr.replaceAt( nPos, nSel, "" ); |