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
c75d632c
Kaydet (Commit)
c75d632c
authored
Kas 12, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#735657 Division or modulo by float zero
Change-Id: I001cc2b0c8866956d9fffb67f3a30306f9b02e63
üst
3ecb8eff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
bitmap4.cxx
vcl/source/gdi/bitmap4.cxx
+11
-3
No files found.
vcl/source/gdi/bitmap4.cxx
Dosyayı görüntüle @
c75d632c
...
@@ -787,11 +787,19 @@ bool Bitmap::ImplMosaic( const BmpFilterParam* pFilterParam, const Link* /*pProg
...
@@ -787,11 +787,19 @@ bool Bitmap::ImplMosaic( const BmpFilterParam* pFilterParam, const Link* /*pProg
pWriteAcc
=
pNewBmp
->
AcquireWriteAccess
();
pWriteAcc
=
pNewBmp
->
AcquireWriteAccess
();
}
}
if
(
pReadAcc
&&
pWriteAcc
)
bool
bConditionsMet
=
false
;
long
nWidth
;
long
nHeight
;
if
(
pReadAcc
&&
pWriteAcc
)
{
nWidth
=
pReadAcc
->
Width
();
nHeight
=
pReadAcc
->
Height
();
bConditionsMet
=
(
nWidth
>
0
&&
nHeight
>
0
);
}
if
(
bConditionsMet
)
{
{
BitmapColor
aCol
;
BitmapColor
aCol
;
long
nWidth
=
pReadAcc
->
Width
();
long
nHeight
=
pReadAcc
->
Height
();
long
nX
,
nY
,
nX1
,
nX2
,
nY1
,
nY2
,
nSumR
,
nSumG
,
nSumB
;
long
nX
,
nY
,
nX1
,
nX2
,
nY1
,
nY2
,
nSumR
,
nSumG
,
nSumB
;
double
fArea_1
;
double
fArea_1
;
...
...
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