summaryrefslogtreecommitdiff
path: root/extensions/source/dbpilots
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/dbpilots')
-rw-r--r--extensions/source/dbpilots/gridwizard.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/source/dbpilots/gridwizard.cxx b/extensions/source/dbpilots/gridwizard.cxx
index af38f74f0de7..6ddfa06f5b20 100644
--- a/extensions/source/dbpilots/gridwizard.cxx
+++ b/extensions/source/dbpilots/gridwizard.cxx
@@ -414,7 +414,7 @@ namespace dbp
// the (original) relative position of the entry
sal_IntPtr nRelativeIndex = reinterpret_cast<sal_IntPtr>(bMoveRight ? m_aExistFields.GetEntryData(nSelected) : m_aSelFields.GetEntryData(nSelected));
- sal_uInt16 nInsertPos = LISTBOX_APPEND;
+ sal_uInt16 nInsertPos = SAL_MAX_UINT16;
if (!bMoveRight)
{ // need to determine an insert pos which reflects the original
nInsertPos = 0;
@@ -437,7 +437,7 @@ namespace dbp
// remove the entry from it's old list
if (bMoveRight)
{
- sal_uInt16 nSelectPos = m_aExistFields.GetSelectEntryPos();
+ sal_Int32 nSelectPos = m_aExistFields.GetSelectEntryPos();
m_aExistFields.RemoveEntry(nSelected);
if ((LISTBOX_ENTRY_NOTFOUND != nSelectPos) && (nSelectPos < m_aExistFields.GetEntryCount()))
m_aExistFields.SelectEntryPos(nSelectPos);
@@ -446,7 +446,7 @@ namespace dbp
}
else
{
- sal_uInt16 nSelectPos = m_aSelFields.GetSelectEntryPos();
+ sal_Int32 nSelectPos = m_aSelFields.GetSelectEntryPos();
m_aSelFields.RemoveEntry(nSelected);
if ((LISTBOX_ENTRY_NOTFOUND != nSelectPos) && (nSelectPos < m_aSelFields.GetEntryCount()))
m_aSelFields.SelectEntryPos(nSelectPos);