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
6b23f69d
Kaydet (Commit)
6b23f69d
authored
May 23, 2018
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw_redlinehide: convert SwTextFrame::PrepareVisualMove()
Change-Id: Icc9a7f44ad10f0ea556681d832bc3716e9341da7
üst
36530849
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
frmcrsr.cxx
sw/source/core/text/frmcrsr.cxx
+7
-6
No files found.
sw/source/core/text/frmcrsr.cxx
Dosyayı görüntüle @
6b23f69d
...
...
@@ -1075,18 +1075,19 @@ void SwTextFrame::PrepareVisualMove(TextFrameIndex & nPos, sal_uInt8& nCursorLev
// Bidi functions from icu 2.0
const
sal_Unicode
*
pLineString
=
GetText
Node
()
->
GetText
().
getStr
();
const
sal_Unicode
*
pLineString
=
GetText
().
getStr
();
UErrorCode
nError
=
U_ZERO_ERROR
;
UBiDi
*
pBidi
=
ubidi_openSized
(
nLen
,
0
,
&
nError
);
ubidi_setPara
(
pBidi
,
reinterpret_cast
<
const
UChar
*>
(
pLineString
),
nLen
,
nDefaultDir
,
nullptr
,
&
nError
);
UBiDi
*
pBidi
=
ubidi_openSized
(
sal_Int32
(
nLen
),
0
,
&
nError
);
ubidi_setPara
(
pBidi
,
reinterpret_cast
<
const
UChar
*>
(
pLineString
),
sal_Int32
(
nLen
),
nDefaultDir
,
nullptr
,
&
nError
);
sal_Int32
nTmpPos
=
0
;
TextFrameIndex
nTmpPos
(
0
)
;
bool
bOutOfBounds
=
false
;
if
(
nPos
<
nStt
+
nLen
)
{
nTmpPos
=
ubidi_getVisualIndex
(
pBidi
,
nPos
,
&
nError
);
nTmpPos
=
TextFrameIndex
(
ubidi_getVisualIndex
(
pBidi
,
sal_Int32
(
nPos
),
&
nError
)
);
// visual indices are always LTR aligned
if
(
bVisualRight
)
...
...
@@ -1117,7 +1118,7 @@ void SwTextFrame::PrepareVisualMove(TextFrameIndex & nPos, sal_uInt8& nCursorLev
if
(
!
bOutOfBounds
)
{
nPos
=
ubidi_getLogicalIndex
(
pBidi
,
nTmpPos
,
&
nError
);
nPos
=
TextFrameIndex
(
ubidi_getLogicalIndex
(
pBidi
,
sal_Int32
(
nTmpPos
),
&
nError
)
);
if
(
bForward
)
{
...
...
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