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
78e670b3
Kaydet (Commit)
78e670b3
authored
Kas 01, 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: I0ae8d51a569c2a63f5fb390e66fdbde4a8e8b5d5
üst
2149e924
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 @
78e670b3
...
...
@@ -1455,9 +1455,14 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 nAbsAvail, sal_uInt16 nRelAv
}
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
;
double
nW
=
nAbsTabWidth
-
nMin
;
double
nD
=
(
nMax
==
nMin
?
1
:
nMax
-
nMin
);
sal_uInt16
nAbs
=
0
,
nRel
=
0
;
...
...
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