summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/ui/misc/WTypeSelect.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/misc/WTypeSelect.cxx')
-rw-r--r--dbaccess/source/ui/misc/WTypeSelect.cxx34
1 files changed, 16 insertions, 18 deletions
diff --git a/dbaccess/source/ui/misc/WTypeSelect.cxx b/dbaccess/source/ui/misc/WTypeSelect.cxx
index b85b3e66e2e7..49ae18ccd1e2 100644
--- a/dbaccess/source/ui/misc/WTypeSelect.cxx
+++ b/dbaccess/source/ui/misc/WTypeSelect.cxx
@@ -352,7 +352,22 @@ IMPL_LINK_NOARG( OWizTypeSelect, ButtonClickHdl, Button *, void )
{
sal_Int32 nBreakPos;
m_pParent->CheckColumns(nBreakPos);
- fillColumnList(m_pAutoEt->GetText().toInt32());
+
+ // fill column list
+ sal_uInt32 nRows = m_pAutoEt->GetText().toInt32();
+ if(m_pParserStream)
+ {
+ sal_uInt64 const nTell = m_pParserStream->Tell(); // might change seek position of stream
+
+ SvParser *pReader = createReader(nRows);
+ if(pReader)
+ {
+ pReader->AddFirstRef();
+ pReader->CallParser();
+ pReader->ReleaseRef();
+ }
+ m_pParserStream->Seek(nTell);
+ }
ActivatePage();
}
@@ -478,21 +493,4 @@ bool OWizTypeSelectList::PreNotify( NotifyEvent& rEvt )
return bDone || MultiListBox::PreNotify(rEvt);
}
-void OWizTypeSelect::fillColumnList(sal_uInt32 nRows)
-{
- if(m_pParserStream)
- {
- sal_uInt64 const nTell = m_pParserStream->Tell(); // might change seek position of stream
-
- SvParser *pReader = createReader(nRows);
- if(pReader)
- {
- pReader->AddFirstRef();
- pReader->CallParser();
- pReader->ReleaseRef();
- }
- m_pParserStream->Seek(nTell);
- }
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */