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
e37a33f5
Kaydet (Commit)
e37a33f5
authored
Eyl 12, 2013
tarafından
Zolnai Tamás
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
In some case character border merge is called twice
Change-Id: I206b3a448b45c918070bb73074bea79e94231297
üst
3da52a1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
itrform2.cxx
sw/source/core/text/itrform2.cxx
+19
-11
No files found.
sw/source/core/text/itrform2.cxx
Dosyayı görüntüle @
e37a33f5
...
@@ -2639,11 +2639,15 @@ void SwTxtFormatter::MergeCharacterBorder( SwLinePortion& rPortion, SwTxtFormatI
...
@@ -2639,11 +2639,15 @@ void SwTxtFormatter::MergeCharacterBorder( SwLinePortion& rPortion, SwTxtFormatI
// The current portion isn't inserted into the portion chain yet, so the info's
// The current portion isn't inserted into the portion chain yet, so the info's
// last portion will be the previous one
// last portion will be the previous one
if
(
rInf
.
GetLast
()
&&
rInf
.
GetLast
()
!=
&
rPortion
&&
// For para portion (special case)
if
(
rInf
.
GetLast
()
&&
rInf
.
GetLast
()
!=
&
rPortion
&&
// For para portion (special case)
rInf
.
GetLast
()
->
GetJoinBorderWithNext
())
rInf
.
GetLast
()
->
GetJoinBorderWithNext
()
)
{
{
rPortion
.
SetJoinBorderWithPrev
(
true
);
// In some case border merge is called twice to the portion
if
(
rPortion
.
InTxtGrp
()
&&
rPortion
.
Width
()
>
aCurFont
.
GetLeftBorderSpace
()
)
if
(
!
rPortion
.
GetJoinBorderWithPrev
()
)
rPortion
.
Width
(
rPortion
.
Width
()
-
aCurFont
.
GetLeftBorderSpace
());
{
rPortion
.
SetJoinBorderWithPrev
(
true
);
if
(
rPortion
.
InTxtGrp
()
&&
rPortion
.
Width
()
>
aCurFont
.
GetLeftBorderSpace
()
)
rPortion
.
Width
(
rPortion
.
Width
()
-
aCurFont
.
GetLeftBorderSpace
());
}
}
}
else
else
{
{
...
@@ -2653,18 +2657,22 @@ void SwTxtFormatter::MergeCharacterBorder( SwLinePortion& rPortion, SwTxtFormatI
...
@@ -2653,18 +2657,22 @@ void SwTxtFormatter::MergeCharacterBorder( SwLinePortion& rPortion, SwTxtFormatI
// Get next portion's font
// Get next portion's font
bool
bSeek
=
false
;
bool
bSeek
=
false
;
if
(
!
rInf
.
IsFull
()
// L
ast portion of the line (in case of line break)
if
(
!
rInf
.
IsFull
()
&&
// Not the l
ast portion of the line (in case of line break)
&&
rInf
.
GetIdx
()
+
rPortion
.
GetLen
()
!=
rInf
.
GetTxt
().
getLength
()
)
// L
ast portion of the paragraph
rInf
.
GetIdx
()
+
rPortion
.
GetLen
()
!=
rInf
.
GetTxt
().
getLength
()
)
// Not the l
ast portion of the paragraph
bSeek
=
Seek
(
rInf
.
GetIdx
()
+
rPortion
.
GetLen
());
bSeek
=
Seek
(
rInf
.
GetIdx
()
+
rPortion
.
GetLen
());
// If next portion has the same
font
then merge
// If next portion has the same
border
then merge
if
(
bSeek
&&
GetFnt
()
->
HasBorder
()
&&
::
lcl_HasSameBorder
(
aCurFont
,
*
GetFnt
())
)
if
(
bSeek
&&
GetFnt
()
->
HasBorder
()
&&
::
lcl_HasSameBorder
(
aCurFont
,
*
GetFnt
())
)
{
{
rPortion
.
SetJoinBorderWithNext
(
true
);
// In some case border merge is called twice to the portion
if
(
rPortion
.
InTxtGrp
()
&&
rPortion
.
Width
()
>
aCurFont
.
GetRightBorderSpace
()
)
if
(
!
rPortion
.
GetJoinBorderWithNext
()
)
rPortion
.
Width
(
rPortion
.
Width
()
-
aCurFont
.
GetRightBorderSpace
());
{
rPortion
.
SetJoinBorderWithNext
(
true
);
if
(
rPortion
.
InTxtGrp
()
&&
rPortion
.
Width
()
>
aCurFont
.
GetRightBorderSpace
()
)
rPortion
.
Width
(
rPortion
.
Width
()
-
aCurFont
.
GetRightBorderSpace
());
}
}
}
// If this is the last portion of the merge group th
a
n make the real height merge
// If this is the last portion of the merge group th
e
n make the real height merge
else
else
{
{
rPortion
.
SetJoinBorderWithNext
(
false
);
rPortion
.
SetJoinBorderWithNext
(
false
);
...
...
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