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
49cda4d7
Kaydet (Commit)
49cda4d7
authored
Şub 02, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reduce scope of some local variables
Change-Id: I0e9c8d65a6e46cf1035b6ca5de4b28fe2a0f120e
üst
cf3b6d9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
17 deletions
+11
-17
itrpaint.cxx
sw/source/core/text/itrpaint.cxx
+11
-17
No files found.
sw/source/core/text/itrpaint.cxx
Dosyayı görüntüle @
49cda4d7
...
...
@@ -497,34 +497,26 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor,
// If current underline matches the common underline font, we continue
// to use the common underline font.
//Bug 120769:Color of underline display wrongly
Color
aAutoCo
(
COL_AUTO
);
if
(
GetInfo
().
GetUnderFnt
()
&&
GetInfo
().
GetUnderFnt
()
->
GetFont
().
GetUnderline
()
==
GetFnt
()
->
GetUnderline
()
&&
GetInfo
().
GetFont
()
&&
GetInfo
().
GetFont
()
->
GetUnderColor
()
!=
aAutoCo
)
GetInfo
().
GetFont
()
&&
GetInfo
().
GetFont
()
->
GetUnderColor
()
!=
Color
(
COL_AUTO
)
)
return
;
//Bug 120769(End)
// calculate the new common underline font
SwFont
*
pUnderlineFnt
=
0
;
Point
aCommonBaseLine
;
Range
aRange
(
0
,
GetInfo
().
GetTxt
().
getLength
()
);
MultiSelection
aUnderMulti
(
aRange
);
OSL_ENSURE
(
GetFnt
()
&&
UNDERLINE_NONE
!=
GetFnt
()
->
GetUnderline
(),
"CheckSpecialUnderline without underlined font"
);
MultiSelection
aUnderMulti
(
Range
(
0
,
GetInfo
().
GetTxt
().
getLength
()
)
);
const
SwFont
*
pParaFnt
=
GetAttrHandler
().
GetFont
();
if
(
pParaFnt
&&
pParaFnt
->
GetUnderline
()
==
GetFnt
()
->
GetUnderline
()
)
aUnderMulti
.
SelectAll
();
SwTxtAttr
*
pTxtAttr
;
if
(
HasHints
()
)
{
bool
bUnder
=
false
;
MSHORT
nTmp
=
0
;
while
(
nTmp
<
pHints
->
GetStartCount
()
)
for
(
MSHORT
nTmp
=
0
;
nTmp
<
pHints
->
GetStartCount
();
++
nTmp
)
{
pTxtAttr
=
pHints
->
GetStart
(
nTmp
++
);
SwTxtAttr
*
const
pTxtAttr
=
pHints
->
GetStart
(
nTmp
);
bool
bUnderSelect
=
false
;
const
SvxUnderlineItem
*
pItem
=
...
...
@@ -551,14 +543,13 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor,
}
}
MSHORT
i
;
sal_Int32
nIndx
=
GetInfo
().
GetIdx
();
const
sal_Int32
nIndx
=
GetInfo
().
GetIdx
();
long
nUnderStart
=
0
;
long
nUnderEnd
=
0
;
MSHORT
nCnt
=
(
MSHORT
)
aUnderMulti
.
GetRangeCount
();
const
MSHORT
nCnt
=
(
MSHORT
)
aUnderMulti
.
GetRangeCount
();
// find the underline range the current portion is contained in
for
(
i
=
0
;
i
<
nCnt
;
++
i
)
for
(
MSHORT
i
=
0
;
i
<
nCnt
;
++
i
)
{
const
Range
&
rRange
=
aUnderMulti
.
GetRange
(
i
);
if
(
nUnderEnd
==
rRange
.
Min
()
)
...
...
@@ -579,6 +570,9 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor,
if
(
GetEnd
()
&&
GetEnd
()
<=
nUnderEnd
)
nUnderEnd
=
GetEnd
()
-
1
;
// calculate the new common underline font
SwFont
*
pUnderlineFnt
=
0
;
Point
aCommonBaseLine
;
// check, if underlining is not isolated
if
(
nIndx
+
GetInfo
().
GetLen
()
<
nUnderEnd
+
1
)
...
...
@@ -637,7 +631,7 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor,
++
nNumberOfPortions
;
nTmpIdx
=
nTmpIdx
+
pPor
->
GetLen
();
nTmpIdx
+=
pPor
->
GetLen
();
pPor
=
pPor
->
GetPortion
();
}
...
...
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