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
e118a5d3
Kaydet (Commit)
e118a5d3
authored
Mar 04, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
handle 0 width tables gracefully
üst
0caf05c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
33 deletions
+36
-33
ww8par2.cxx
sw/source/filter/ww8/ww8par2.cxx
+36
-33
No files found.
sw/source/filter/ww8/ww8par2.cxx
Dosyayı görüntüle @
e118a5d3
...
...
@@ -2239,41 +2239,44 @@ void WW8TabDesc::CalcDefaults()
}
}
}
/*
Similiar to graphics and other elements word does not totally
factor the width of the border into its calculations of size, we
do so we must adjust out widths and other dimensions to fit. It
appears that what occurs is that the last cell's right margin if
the margin width that is not calculated into winwords table
dimensions, so in that case increase the table to include the
extra width of the right margin.
*/
if
(
pIo
->
bVer67
?
!
(
SVBT16ToShort
(
pR
->
pTCs
[
pR
->
nWwCols
-
1
].
rgbrc
[
3
].
aBits1
)
&
0x20
)
:
!
(
SVBT16ToShort
(
pR
->
pTCs
[
pR
->
nWwCols
-
1
].
rgbrc
[
3
].
aBits2
)
&
0x2000
))
if
(
pR
->
nWwCols
)
{
short
nThickness
=
pR
->
pTCs
[
pR
->
nWwCols
-
1
].
rgbrc
[
3
].
DetermineBorderProperties
(
pIo
->
bVer67
);
pR
->
nCenter
[
pR
->
nWwCols
]
=
pR
->
nCenter
[
pR
->
nWwCols
]
+
nThickness
;
if
(
nThickness
>
nRightMaxThickness
)
nRightMaxThickness
=
nThickness
;
}
/*
Similiar to graphics and other elements word does not totally
factor the width of the border into its calculations of size, we
do so we must adjust out widths and other dimensions to fit. It
appears that what occurs is that the last cell's right margin if
the margin width that is not calculated into winwords table
dimensions, so in that case increase the table to include the
extra width of the right margin.
*/
if
(
pIo
->
bVer67
?
!
(
SVBT16ToShort
(
pR
->
pTCs
[
pR
->
nWwCols
-
1
].
rgbrc
[
3
].
aBits1
)
&
0x20
)
:
!
(
SVBT16ToShort
(
pR
->
pTCs
[
pR
->
nWwCols
-
1
].
rgbrc
[
3
].
aBits2
)
&
0x2000
))
{
short
nThickness
=
pR
->
pTCs
[
pR
->
nWwCols
-
1
].
rgbrc
[
3
].
DetermineBorderProperties
(
pIo
->
bVer67
);
pR
->
nCenter
[
pR
->
nWwCols
]
=
pR
->
nCenter
[
pR
->
nWwCols
]
+
nThickness
;
if
(
nThickness
>
nRightMaxThickness
)
nRightMaxThickness
=
nThickness
;
}
/*
The left space of the table is in nMinLeft, but again this
does not consider the margin thickness to its left in the
placement value, so get the thickness of the left border,
half is placed to the left of the nominal left side, and
half to the right.
*/
if
(
pIo
->
bVer67
?
!
(
SVBT16ToShort
(
pR
->
pTCs
[
0
].
rgbrc
[
1
].
aBits1
)
&
0x20
)
:
!
(
SVBT16ToShort
(
pR
->
pTCs
[
0
].
rgbrc
[
1
].
aBits2
)
&
0x2000
))
{
short
nThickness
=
pR
->
pTCs
[
0
].
rgbrc
[
1
].
DetermineBorderProperties
(
pIo
->
bVer67
);
if
(
nThickness
>
nLeftMaxThickness
)
nLeftMaxThickness
=
nThickness
;
/*
The left space of the table is in nMinLeft, but again this
does not consider the margin thickness to its left in the
placement value, so get the thickness of the left border,
half is placed to the left of the nominal left side, and
half to the right.
*/
if
(
pIo
->
bVer67
?
!
(
SVBT16ToShort
(
pR
->
pTCs
[
0
].
rgbrc
[
1
].
aBits1
)
&
0x20
)
:
!
(
SVBT16ToShort
(
pR
->
pTCs
[
0
].
rgbrc
[
1
].
aBits2
)
&
0x2000
))
{
short
nThickness
=
pR
->
pTCs
[
0
].
rgbrc
[
1
].
DetermineBorderProperties
(
pIo
->
bVer67
);
if
(
nThickness
>
nLeftMaxThickness
)
nLeftMaxThickness
=
nThickness
;
}
}
}
nSwWidth
=
nSwWidth
+
nRightMaxThickness
;
...
...
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