'/' appearing in java classpath list
regression from...
commit 2f6b3fb0f3
Date: Wed Apr 25 18:21:46 2018 +0200
Avoid comphelper::string::getTokenCount()
Change-Id: I5bbfa38d8cceb56fe03282c89039ab30cf108204
Reviewed-on: https://gerrit.libreoffice.org/54422
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -1001,15 +1001,18 @@ void SvxJavaClassPathDlg::SetClassPath( const OUString& _rPath )
|
|||||||
if ( m_sOldPath.isEmpty() )
|
if ( m_sOldPath.isEmpty() )
|
||||||
m_sOldPath = _rPath;
|
m_sOldPath = _rPath;
|
||||||
m_xPathList->clear();
|
m_xPathList->clear();
|
||||||
sal_Int32 nIdx = 0;
|
if (!_rPath.isEmpty())
|
||||||
do
|
|
||||||
{
|
{
|
||||||
OUString sToken = _rPath.getToken( 0, CLASSPATH_DELIMITER, nIdx );
|
sal_Int32 nIdx = 0;
|
||||||
INetURLObject aURL( sToken, FSysStyle::Detect );
|
do
|
||||||
OUString sPath = aURL.getFSysPath( FSysStyle::Detect );
|
{
|
||||||
m_xPathList->append("", sPath, SvFileInformationManager::GetImageId(aURL));
|
OUString sToken = _rPath.getToken( 0, CLASSPATH_DELIMITER, nIdx );
|
||||||
|
INetURLObject aURL( sToken, FSysStyle::Detect );
|
||||||
|
OUString sPath = aURL.getFSysPath( FSysStyle::Detect );
|
||||||
|
m_xPathList->append("", sPath, SvFileInformationManager::GetImageId(aURL));
|
||||||
|
}
|
||||||
|
while (nIdx>=0);
|
||||||
}
|
}
|
||||||
while (nIdx>=0);
|
|
||||||
// select first entry
|
// select first entry
|
||||||
m_xPathList->select(0);
|
m_xPathList->select(0);
|
||||||
SelectHdl_Impl(*m_xPathList);
|
SelectHdl_Impl(*m_xPathList);
|
||||||
|
Reference in New Issue
Block a user