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
6fa813da
Kaydet (Commit)
6fa813da
authored
Eki 29, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1078538 Division or modulo by zero
Change-Id: I4f8f66689b46f594664c44da4e892983f38ad32e
üst
c4e53fad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
htmltbl.cxx
sw/source/core/doc/htmltbl.cxx
+8
-3
No files found.
sw/source/core/doc/htmltbl.cxx
Dosyayı görüntüle @
6fa813da
...
...
@@ -1329,9 +1329,14 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 nAbsAvail, sal_uInt16 nRelAv
// Only use the relative widths' fraction, that is used for the
// absolute width.
sal_uLong
nAbsTabWidthL
=
nAbsTabWidth
;
nRelTabWidth
=
(
nRelAvail
?
(
sal_uInt16
)((
nAbsTabWidthL
*
nRelAvail
)
/
nAbsAvail
)
:
nAbsTabWidth
);
if
(
nRelAvail
)
{
if
(
nAbsAvail
==
0
)
throw
o3tl
::
divide_by_zero
();
nRelTabWidth
=
(
sal_uInt16
)((
nAbsTabWidthL
*
nRelAvail
)
/
nAbsAvail
);
}
else
nRelTabWidth
=
nAbsTabWidth
;
// Are there columns width a percentage setting and some without one?
sal_uLong
nFixMax
=
nMax
;
...
...
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