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
c43ee00e
Kaydet (Commit)
c43ee00e
authored
Agu 15, 2001
tarafından
Herbert Duerr
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#91025# reduce flicker in charmap dialog
üst
2affcdd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
charmap.cxx
svx/source/dialog/charmap.cxx
+20
-11
No files found.
svx/source/dialog/charmap.cxx
Dosyayı görüntüle @
c43ee00e
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: charmap.cxx,v $
*
* $Revision: 1.2
0
$
* $Revision: 1.2
1
$
*
* last change: $Author: hdu $ $Date: 2001-08-1
4 17:30:17
$
* last change: $Author: hdu $ $Date: 2001-08-1
5 14:20:51
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -600,32 +600,41 @@ void SvxShowCharSet::SelectIndex( int nNewIndex, BOOL bFocus )
if
(
nNewIndex
<
0
)
{
// need to scroll see closest unicode
int
nNewPos
=
aVscrollSB
.
GetThumbPos
();
sal_Unicode
cPrev
=
maFontCharMap
.
GetPrevChar
(
cSelectedChar
);
int
nMapIndex
=
UnicodeToMapIndex
(
maFontCharMap
,
cPrev
);
nNewPos
=
nMapIndex
/
COLUMN_COUNT
;
int
nNewPos
=
nMapIndex
/
COLUMN_COUNT
;
aVscrollSB
.
SetThumbPos
(
nNewPos
);
nSelectedIndex
=
bFocus
?
nMapIndex
+
1
:
-
1
;
Invalidate
();
Update
();
}
else
if
(
nNewIndex
<
FirstInView
()
)
{
// need to scroll up to see selected item
int
n
New
Pos
=
aVscrollSB
.
GetThumbPos
();
nNewPos
-
=
(
FirstInView
()
-
nNewIndex
+
COLUMN_COUNT
-
1
)
/
COLUMN_COUNT
;
aVscrollSB
.
SetThumbPos
(
n
NewPos
);
int
n
Old
Pos
=
aVscrollSB
.
GetThumbPos
();
int
nDelta
=
(
FirstInView
()
-
nNewIndex
+
COLUMN_COUNT
-
1
)
/
COLUMN_COUNT
;
aVscrollSB
.
SetThumbPos
(
n
OldPos
-
nDelta
);
nSelectedIndex
=
nNewIndex
;
Invalidate
();
if
(
nDelta
)
Update
();
}
else
if
(
nNewIndex
>
LastInView
()
)
{
// need to scroll down to see selected item
int
n
New
Pos
=
aVscrollSB
.
GetThumbPos
();
nNewPos
+
=
(
nNewIndex
-
LastInView
()
+
COLUMN_COUNT
)
/
COLUMN_COUNT
;
aVscrollSB
.
SetThumbPos
(
n
NewPos
);
int
n
Old
Pos
=
aVscrollSB
.
GetThumbPos
();
int
nDelta
=
(
nNewIndex
-
LastInView
()
+
COLUMN_COUNT
)
/
COLUMN_COUNT
;
aVscrollSB
.
SetThumbPos
(
n
OldPos
+
nDelta
);
if
(
nNewIndex
<
maFontCharMap
.
GetCharCount
()
)
{
nSelectedIndex
=
nNewIndex
;
Invalidate
();
Invalidate
();
}
if
(
nOldPos
!=
aVscrollSB
.
GetThumbPos
()
)
{
Invalidate
();
Update
();
}
}
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