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
2fe0d7bc
Kaydet (Commit)
2fe0d7bc
authored
Tem 04, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#704538-9 Division by zero
Change-Id: Ia77648c3e0442bb5e0a08d01bbd495c9d7c8bbf5
üst
982c6ab3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
bitmap_gfx.cxx
vcl/generic/print/bitmap_gfx.cxx
+10
-3
No files found.
vcl/generic/print/bitmap_gfx.cxx
Dosyayı görüntüle @
2fe0d7bc
...
@@ -410,9 +410,16 @@ void
...
@@ -410,9 +410,16 @@ void
PrinterGfx
::
DrawBitmap
(
const
Rectangle
&
rDest
,
const
Rectangle
&
rSrc
,
PrinterGfx
::
DrawBitmap
(
const
Rectangle
&
rDest
,
const
Rectangle
&
rSrc
,
const
PrinterBmp
&
rBitmap
)
const
PrinterBmp
&
rBitmap
)
{
{
double
fScaleX
=
(
double
)
rDest
.
GetWidth
()
/
(
double
)
rSrc
.
GetWidth
();
double
fScaleX
=
(
double
)
rDest
.
GetWidth
();
double
fScaleY
=
(
double
)
rDest
.
GetHeight
()
/
(
double
)
rSrc
.
GetHeight
();
double
fScaleY
=
(
double
)
rDest
.
GetHeight
();
if
(
rSrc
.
GetWidth
()
>
0
)
{
fScaleX
=
(
double
)
rDest
.
GetWidth
()
/
(
double
)
rSrc
.
GetWidth
();
}
if
(
rSrc
.
GetHeigth
()
>
0
)
{
fScaleY
=
(
double
)
rDest
.
GetHeight
()
/
(
double
)
rSrc
.
GetHeight
();
}
PSGSave
();
PSGSave
();
PSTranslate
(
rDest
.
BottomLeft
());
PSTranslate
(
rDest
.
BottomLeft
());
PSScale
(
fScaleX
,
fScaleY
);
PSScale
(
fScaleX
,
fScaleY
);
...
...
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