Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
2206aaa7
Kaydet (Commit)
2206aaa7
authored
Kas 09, 2018
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Loop only if string length is the desired one
Change-Id: I5e03fceb83a22b590a62b605c4ada279b937730a
üst
5b5b5818
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
TextConnectionHelper.cxx
dbaccess/source/ui/dlg/TextConnectionHelper.cxx
+11
-9
No files found.
dbaccess/source/ui/dlg/TextConnectionHelper.cxx
Dosyayı görüntüle @
2206aaa7
...
@@ -389,19 +389,21 @@ namespace dbaui
...
@@ -389,19 +389,21 @@ namespace dbaui
void
OTextConnectionHelper
::
SetSeparator
(
weld
::
ComboBox
&
rBox
,
const
OUString
&
rList
,
const
OUString
&
rVal
)
void
OTextConnectionHelper
::
SetSeparator
(
weld
::
ComboBox
&
rBox
,
const
OUString
&
rList
,
const
OUString
&
rVal
)
{
{
for
(
sal_Int32
nIdx
{
0
};
nIdx
>=
0
;
)
if
(
rVal
.
getLength
()
==
1
)
{
{
sal_Int32
nPrevIdx
{
nIdx
};
const
sal_Unicode
nVal
{
rVal
[
0
]};
OUString
sTVal
{
static_cast
<
sal_Unicode
>
(
rList
.
getToken
(
1
,
'\t'
,
nIdx
).
toInt32
()
)};
for
(
sal_Int32
nIdx
{
0
};
nIdx
>=
0
;)
if
(
sTVal
==
rVal
)
{
{
rBox
.
set_entry_text
(
rList
.
getToken
(
0
,
'\t'
,
nPrevIdx
));
sal_Int32
nPrevIdx
{
nIdx
};
return
;
if
(
static_cast
<
sal_Unicode
>
(
rList
.
getToken
(
1
,
'\t'
,
nIdx
).
toInt32
())
==
nVal
)
{
rBox
.
set_entry_text
(
rList
.
getToken
(
0
,
'\t'
,
nPrevIdx
));
return
;
}
}
}
rBox
.
set_entry_text
(
rVal
);
}
}
else
if
(
m_xTextSeparator
.
get
()
==
&
rBox
&&
rVal
.
isEmpty
()
)
if
(
m_xTextSeparator
.
get
()
==
&
rBox
&&
rVal
.
isEmpty
()
)
rBox
.
set_entry_text
(
m_aTextNone
);
rBox
.
set_entry_text
(
m_aTextNone
);
else
else
rBox
.
set_entry_text
(
rVal
.
copy
(
0
,
1
));
rBox
.
set_entry_text
(
rVal
.
copy
(
0
,
1
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment