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
a448f1bb
Kaydet (Commit)
a448f1bb
authored
Şub 12, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: tdf#81429 select corresponding listbox entry if not current
Change-Id: Ib475a43601ee22d33677ac45cd6ef9dba7e7c431
üst
ba686b9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
langbox.cxx
svx/source/dialog/langbox.cxx
+16
-8
No files found.
svx/source/dialog/langbox.cxx
Dosyayı görüntüle @
a448f1bb
...
@@ -713,21 +713,29 @@ IMPL_LINK( SvxLanguageComboBox, EditModifyHdl, SvxLanguageComboBox*, /*pEd*/ )
...
@@ -713,21 +713,29 @@ IMPL_LINK( SvxLanguageComboBox, EditModifyHdl, SvxLanguageComboBox*, /*pEd*/ )
const
sal_Int32
nPos
=
GetEntryPos
(
aStr
);
const
sal_Int32
nPos
=
GetEntryPos
(
aStr
);
if
(
nPos
!=
COMBOBOX_ENTRY_NOTFOUND
)
if
(
nPos
!=
COMBOBOX_ENTRY_NOTFOUND
)
{
{
// Advance start of full selection by one so the next character
// will already continue the string instead of having to type the
// same character again to start a new string. The selection
// includes formatting characters and is reverse when obtained from
// the Edit control.
Selection
aSel
(
GetSelection
());
Selection
aSel
(
GetSelection
());
// Select the corresponding listbox entry if not current. This
// invalidates the Edit Selection thus has to happen between
// obtaining the Selection and setting the new Selection.
sal_Int32
nSelPos
=
ImplGetSelectEntryPos
();
if
(
nSelPos
!=
nPos
)
ImplSelectEntryPos
(
nPos
,
true
);
// If typing into the Edit control led us here, advance start of a
// full selection by one so the next character will already
// continue the string instead of having to type the same character
// again to start a new string. The selection includes formatting
// characters and is reverse when obtained from the Edit control.
if
(
aSel
.
Max
()
==
1
)
if
(
aSel
.
Max
()
==
1
)
{
{
OUString
aText
(
GetText
());
OUString
aText
(
GetText
());
if
(
aSel
.
Min
()
==
aText
.
getLength
())
if
(
aSel
.
Min
()
==
aText
.
getLength
())
{
++
aSel
.
Max
();
++
aSel
.
Max
();
SetSelection
(
aSel
);
}
}
}
SetSelection
(
aSel
);
meEditedAndValid
=
EDITED_NO
;
meEditedAndValid
=
EDITED_NO
;
}
}
else
else
...
...
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