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
27277d76
Kaydet (Commit)
27277d76
authored
Eki 28, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1078542 Division or modulo by zero
Change-Id: I3325328c01b23d43c774db4af080df535f47787b
üst
1ed46f6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
epict.cxx
filter/source/graphicfilter/epict/epict.cxx
+8
-3
No files found.
filter/source/graphicfilter/epict/epict.cxx
Dosyayı görüntüle @
27277d76
...
@@ -1745,7 +1745,6 @@ void PictWriter::WriteOpcodes( const GDIMetaFile & rMTF )
...
@@ -1745,7 +1745,6 @@ void PictWriter::WriteOpcodes( const GDIMetaFile & rMTF )
VirtualDevice
aVirDev
;
VirtualDevice
aVirDev
;
boost
::
scoped_array
<
long
>
pDXAry
(
new
long
[
aStr
.
getLength
()
]);
boost
::
scoped_array
<
long
>
pDXAry
(
new
long
[
aStr
.
getLength
()
]);
sal_Int32
nNormSize
(
aVirDev
.
GetTextArray
(
aStr
,
pDXAry
.
get
()
)
);
sal_Int32
nNormSize
(
aVirDev
.
GetTextArray
(
aStr
,
pDXAry
.
get
()
)
);
sal_uInt16
i
;
if
(
aSrcFont
.
GetAlign
()
!=
ALIGN_BASELINE
)
if
(
aSrcFont
.
GetAlign
()
!=
ALIGN_BASELINE
)
{
{
...
@@ -1755,8 +1754,14 @@ void PictWriter::WriteOpcodes( const GDIMetaFile & rMTF )
...
@@ -1755,8 +1754,14 @@ void PictWriter::WriteOpcodes( const GDIMetaFile & rMTF )
aPt
.
Y
()
-=
(
long
)
aVirDev
.
GetFontMetric
(
aSrcFont
).
GetDescent
();
aPt
.
Y
()
-=
(
long
)
aVirDev
.
GetFontMetric
(
aSrcFont
).
GetDescent
();
}
}
for
(
i
=
0
;
i
<
aStr
.
getLength
()
-
1
;
i
++
)
sal_Int32
nLength
=
aStr
.
getLength
()
-
1
;
pDXAry
[
i
]
=
pDXAry
[
i
]
*
(
(
long
)
pA
->
GetWidth
()
)
/
nNormSize
;
if
(
nLength
>
0
)
{
if
(
nNormSize
==
0
)
throw
std
::
runtime_error
(
"divide by zero"
);
for
(
sal_Int32
i
=
0
;
i
<
nLength
;
++
i
)
pDXAry
[
i
]
=
pDXAry
[
i
]
*
(
(
long
)
pA
->
GetWidth
()
)
/
nNormSize
;
}
SetAttrForText
();
SetAttrForText
();
WriteTextArray
(
aPt
,
aStr
,
pDXAry
.
get
()
);
WriteTextArray
(
aPt
,
aStr
,
pDXAry
.
get
()
);
...
...
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