Tag: cws_src680_dba24 User: oj Date: 05/02/27 23:30:29 Modified: /dba/dbaccess/source/ui/dlg/ TextConnectionHelper.cxx
Log: #i43625# correct GetExtension() File Changes: Directory: /dba/dbaccess/source/ui/dlg/ ======================================= File [changed]: TextConnectionHelper.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/TextConnectionHelper.cxx?r1=1.2&r2=1.2.48.1 Delta lines: +10 -5 -------------------- --- TextConnectionHelper.cxx 27 Oct 2004 13:00:22 -0000 1.2 +++ TextConnectionHelper.cxx 28 Feb 2005 07:30:26 -0000 1.2.48.1 @@ -2,9 +2,9 @@ * * $RCSfile: TextConnectionHelper.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.2.48.1 $ * - * last change: $Author: pjunck $ $Date: 2004/10/27 13:00:22 $ + * last change: $Author: oj $ $Date: 2005/02/28 07:30:26 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -465,11 +465,16 @@ { String sExtension; if (m_aRBAccessTextFiles.IsChecked()) - return (String) ::rtl::OUString::createFromAscii("txt"); + sExtension = String::CreateFromAscii("txt"); else if (m_aRBAccessCSVFiles.IsChecked()) - return (String) ::rtl::OUString::createFromAscii("csv"); + sExtension = String::CreateFromAscii("csv"); else - return m_aETOwnExtension.GetText(); + { + sExtension = m_aETOwnExtension.GetText(); + if ( !sExtension.Len() ) + sExtension = m_aFTExtensionExample.GetText(); + } + return sExtension; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
