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
5f8bae54
Kaydet (Commit)
5f8bae54
authored
Kas 06, 2018
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw_redlinehide_3: adapt SwEditShell::GetScriptType()
Change-Id: Iffb09b9145b72a1ac8710e41a0a7d7ad3abe5c33
üst
eed21432
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
edattr.cxx
sw/source/core/edit/edattr.cxx
+5
-4
No files found.
sw/source/core/edit/edattr.cxx
Dosyayı görüntüle @
5f8bae54
...
...
@@ -565,7 +565,8 @@ static SvtScriptType lcl_SetScriptFlags( sal_uInt16 nType )
}
}
static
bool
lcl_IsNoEndTextAttrAtPos
(
const
SwTextNode
&
rTNd
,
sal_Int32
nPos
,
static
bool
lcl_IsNoEndTextAttrAtPos
(
SwRootFrame
const
&
rLayout
,
const
SwTextNode
&
rTNd
,
sal_Int32
const
nPos
,
SvtScriptType
&
rScrpt
,
bool
bInSelection
,
bool
bNum
)
{
bool
bRet
=
false
;
...
...
@@ -576,7 +577,7 @@ static bool lcl_IsNoEndTextAttrAtPos( const SwTextNode& rTNd, sal_Int32 nPos,
{
bRet
=
false
;
if
(
rTNd
.
IsInList
()
)
if
(
sw
::
IsParaPropsNode
(
rLayout
,
rTNd
)
&&
rTNd
.
IsInList
()
)
{
OSL_ENSURE
(
rTNd
.
GetNumRule
(),
"<lcl_IsNoEndTextAttrAtPos(..)> - no list style found at text node. Serious defect."
);
...
...
@@ -686,7 +687,7 @@ SvtScriptType SwEditShell::GetScriptType() const
else
nScript
=
SvtLanguageOptions
::
GetI18NScriptTypeOfLanguage
(
GetAppLanguage
()
);
if
(
!
lcl_IsNoEndTextAttrAtPos
(
*
pTNd
,
nPos
,
nRet
,
false
,
false
))
if
(
!
lcl_IsNoEndTextAttrAtPos
(
*
GetLayout
(),
*
pTNd
,
nPos
,
nRet
,
false
,
false
))
nRet
|=
lcl_SetScriptFlags
(
nScript
);
}
}
...
...
@@ -728,7 +729,7 @@ SvtScriptType SwEditShell::GetScriptType() const
g_pBreakIt
->
GetBreakIter
()
->
getScriptType
(
rText
,
nChg
);
if
(
!
lcl_IsNoEndTextAttrAtPos
(
*
pTNd
,
nChg
,
nRet
,
true
,
if
(
!
lcl_IsNoEndTextAttrAtPos
(
*
GetLayout
(),
*
pTNd
,
nChg
,
nRet
,
true
,
0
==
nChg
&&
rText
.
getLength
()
==
nEndPos
))
nRet
|=
lcl_SetScriptFlags
(
nScript
);
...
...
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