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
aa511f1d
Kaydet (Commit)
aa511f1d
authored
May 24, 2018
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw_redlinehide: convert SwSubFont::DrawText_ to static SwScriptInfo
Change-Id: I7bdcb5f787b6a82def4f7ca5aca29a16b6881e38
üst
c323ed0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
swfont.cxx
sw/source/core/txtnode/swfont.cxx
+10
-7
No files found.
sw/source/core/txtnode/swfont.cxx
Dosyayı görüntüle @
aa511f1d
...
@@ -1213,20 +1213,23 @@ void SwSubFont::DrawText_( SwDrawTextInfo &rInf, const bool bGrey )
...
@@ -1213,20 +1213,23 @@ void SwSubFont::DrawText_( SwDrawTextInfo &rInf, const bool bGrey )
long
nSpace
=
0
;
long
nSpace
=
0
;
if
(
rInf
.
GetSpace
()
)
if
(
rInf
.
GetSpace
()
)
{
{
sal_Int32
nTmpEnd
=
nOldIdx
+
nOldLen
;
TextFrameIndex
nTmpEnd
=
nOldIdx
+
nOldLen
;
if
(
nTmpEnd
>
oldStr
.
getLength
(
))
if
(
nTmpEnd
>
TextFrameIndex
(
oldStr
.
getLength
()
))
nTmpEnd
=
oldStr
.
getLength
(
);
nTmpEnd
=
TextFrameIndex
(
oldStr
.
getLength
()
);
const
SwScriptInfo
*
pSI
=
rInf
.
GetScriptInfo
();
const
SwScriptInfo
*
pSI
=
rInf
.
GetScriptInfo
();
const
bool
bAsianFont
=
const
bool
bAsianFont
=
(
rInf
.
GetFont
()
&&
SwFontScript
::
CJK
==
rInf
.
GetFont
()
->
GetActual
()
);
(
rInf
.
GetFont
()
&&
SwFontScript
::
CJK
==
rInf
.
GetFont
()
->
GetActual
()
);
for
(
sal_Int32
nTmp
=
nOldIdx
;
nTmp
<
nTmpEnd
;
++
nTmp
)
for
(
TextFrameIndex
nTmp
=
nOldIdx
;
nTmp
<
nTmpEnd
;
++
nTmp
)
{
{
if
(
CH_BLANK
==
oldStr
[
nTmp
]
||
bAsianFont
||
if
(
CH_BLANK
==
oldStr
[
sal_Int32
(
nTmp
)]
||
bAsianFont
||
(
nTmp
+
1
<
oldStr
.
getLength
()
&&
pSI
&&
(
nTmp
+
TextFrameIndex
(
1
)
<
TextFrameIndex
(
oldStr
.
getLength
())
i18n
::
ScriptType
::
ASIAN
==
pSI
->
ScriptType
(
nTmp
+
1
)
)
)
&&
pSI
&&
i18n
::
ScriptType
::
ASIAN
==
pSI
->
ScriptType
(
nTmp
+
TextFrameIndex
(
1
))))
{
++
nSpace
;
++
nSpace
;
}
}
}
// if next portion if a hole portion we do not consider any
// if next portion if a hole portion we do not consider any
...
...
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