diff options
Diffstat (limited to 'cui/source/dialogs/showcols.cxx')
-rw-r--r-- | cui/source/dialogs/showcols.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/dialogs/showcols.cxx b/cui/source/dialogs/showcols.cxx index d2c950b8f6a2..cc1078e8d7cb 100644 --- a/cui/source/dialogs/showcols.cxx +++ b/cui/source/dialogs/showcols.cxx @@ -57,7 +57,7 @@ IMPL_LINK_NOARG(FmShowColsDialog, OnClickedOk, Button*, void) if (m_xColumns.is()) { css::uno::Reference< css::beans::XPropertySet > xCol; - for (sal_Int32 i=0; i < m_pList->GetSelectEntryCount(); ++i) + for (sal_Int32 i=0; i < m_pList->GetSelectedEntryCount(); ++i) { m_xColumns->getByIndex(sal::static_int_cast<sal_Int32>(reinterpret_cast<sal_uIntPtr>(m_pList->GetEntryData(m_pList->GetSelectedEntryPos(i))))) >>= xCol; if (xCol.is()) |