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
6a9b0aac
Kaydet (Commit)
6a9b0aac
authored
Ock 26, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bail out early
Change-Id: Id2a77996cfe9a9ec755766295141123870b4eaf2
üst
cc9057b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
35 deletions
+27
-35
porlay.cxx
sw/source/core/text/porlay.cxx
+27
-35
No files found.
sw/source/core/text/porlay.cxx
Dosyayı görüntüle @
6a9b0aac
...
@@ -750,20 +750,18 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL )
...
@@ -750,20 +750,18 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL )
{
{
while
(
nCntComp
<
CountCompChg
()
)
while
(
nCntComp
<
CountCompChg
()
)
{
{
if
(
nChg
>
GetCompStart
(
nCntComp
)
)
if
(
nChg
<=
GetCompStart
(
nCntComp
)
)
nCntComp
++
;
else
break
;
break
;
nCntComp
++
;
}
}
}
}
if
(
bAdjustBlock
)
if
(
bAdjustBlock
)
{
{
while
(
nCntKash
<
CountKashida
()
)
while
(
nCntKash
<
CountKashida
()
)
{
{
if
(
nChg
>
GetKashida
(
nCntKash
)
)
if
(
nChg
<=
GetKashida
(
nCntKash
)
)
nCntKash
++
;
else
break
;
break
;
nCntKash
++
;
}
}
}
}
}
}
...
@@ -888,10 +886,9 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL )
...
@@ -888,10 +886,9 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL )
while
(
com
::
sun
::
star
::
i18n
::
CTLScriptType
::
CTL_UNKNOWN
==
nCurrentScriptType
||
nScriptType
==
nCurrentScriptType
)
while
(
com
::
sun
::
star
::
i18n
::
CTLScriptType
::
CTL_UNKNOWN
==
nCurrentScriptType
||
nScriptType
==
nCurrentScriptType
)
{
{
nNextCTLScriptStart
=
ScriptTypeDetector
::
endOfCTLScriptType
(
rTxt
,
nNextCTLScriptStart
);
nNextCTLScriptStart
=
ScriptTypeDetector
::
endOfCTLScriptType
(
rTxt
,
nNextCTLScriptStart
);
if
(
nNextCTLScriptStart
<
rTxt
.
getLength
()
&&
nNextCTLScriptStart
<
nChg
)
if
(
nNextCTLScriptStart
>=
rTxt
.
getLength
()
||
nNextCTLScriptStart
>=
nChg
)
nCurrentScriptType
=
ScriptTypeDetector
::
getCTLScriptType
(
rTxt
,
nNextCTLScriptStart
);
else
break
;
break
;
nCurrentScriptType
=
ScriptTypeDetector
::
getCTLScriptType
(
rTxt
,
nNextCTLScriptStart
);
}
}
nChg
=
std
::
min
(
nChg
,
nNextCTLScriptStart
);
nChg
=
std
::
min
(
nChg
,
nNextCTLScriptStart
);
}
}
...
@@ -1698,27 +1695,24 @@ long SwScriptInfo::Compress( sal_Int32* pKernArray, sal_Int32 nIdx, sal_Int32 nL
...
@@ -1698,27 +1695,24 @@ long SwScriptInfo::Compress( sal_Int32* pKernArray, sal_Int32 nIdx, sal_Int32 nL
}
}
}
}
if
(
nIdx
<
nLen
)
if
(
nIdx
>=
nLen
)
break
;
sal_Int32
nTmpChg
=
nLen
;
if
(
++
nCompIdx
<
nCompCount
)
{
{
sal_Int32
nTmpChg
;
nTmpChg
=
GetCompStart
(
nCompIdx
);
if
(
++
nCompIdx
<
nCompCount
)
if
(
nTmpChg
>
nLen
)
{
nTmpChg
=
GetCompStart
(
nCompIdx
);
if
(
nTmpChg
>
nLen
)
nTmpChg
=
nLen
;
nCompLen
=
GetCompLen
(
nCompIdx
);
}
else
nTmpChg
=
nLen
;
nTmpChg
=
nLen
;
while
(
nIdx
<
nTmpChg
)
nCompLen
=
GetCompLen
(
nCompIdx
);
{
}
nLast
=
pKernArray
[
nI
];
pKernArray
[
nI
++
]
-=
nSub
;
while
(
nIdx
<
nTmpChg
)
++
nIdx
;
{
}
nLast
=
pKernArray
[
nI
];
pKernArray
[
nI
++
]
-=
nSub
;
++
nIdx
;
}
}
else
break
;
}
while
(
nIdx
<
nLen
);
}
while
(
nIdx
<
nLen
);
return
nSub
;
return
nSub
;
}
}
...
@@ -2015,12 +2009,10 @@ bool SwScriptInfo::MarkKashidasInvalid(sal_Int32 nCnt, sal_Int32* pKashidaPositi
...
@@ -2015,12 +2009,10 @@ bool SwScriptInfo::MarkKashidasInvalid(sal_Int32 nCnt, sal_Int32* pKashidaPositi
continue
;
continue
;
}
}
if
(
pKashidaPositions
[
nKashidaPosIdx
]
==
GetKashida
(
nCntKash
)
&&
IsKashidaValid
(
nCntKash
)
)
if
(
pKashidaPositions
[
nKashidaPosIdx
]
!=
GetKashida
(
nCntKash
)
||
!
IsKashidaValid
(
nCntKash
)
)
{
MarkKashidaInvalid
(
nCntKash
);
}
else
return
false
;
// something is wrong
return
false
;
// something is wrong
MarkKashidaInvalid
(
nCntKash
);
nKashidaPosIdx
++
;
nKashidaPosIdx
++
;
}
}
return
true
;
return
true
;
...
@@ -2075,9 +2067,9 @@ SwScriptInfo* SwScriptInfo::GetScriptInfo( const SwTxtNode& rTNd,
...
@@ -2075,9 +2067,9 @@ SwScriptInfo* SwScriptInfo::GetScriptInfo( const SwTxtNode& rTNd,
pScriptInfo
=
(
SwScriptInfo
*
)
pLast
->
GetScriptInfo
();
pScriptInfo
=
(
SwScriptInfo
*
)
pLast
->
GetScriptInfo
();
if
(
pScriptInfo
)
if
(
pScriptInfo
)
{
{
if
(
!
bAllowInvalid
&&
COMPLETE_STRING
!
=
pScriptInfo
->
GetInvalidityA
()
)
if
(
bAllowInvalid
||
COMPLETE_STRING
=
=
pScriptInfo
->
GetInvalidityA
()
)
pScriptInfo
=
0
;
break
;
else
break
;
pScriptInfo
=
0
;
}
}
}
}
...
...
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