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
6906f659
Kaydet (Commit)
6906f659
authored
Eki 29, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix -fsanitize=signed-integer-overflow (when long int is 32-bit)
Change-Id: I25a96479eafa97eccace2879bf8e1af5e85f60c8
üst
59eac78f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
frmtool.cxx
sw/source/core/layout/frmtool.cxx
+1
-1
No files found.
sw/source/core/layout/frmtool.cxx
Dosyayı görüntüle @
6906f659
...
...
@@ -3301,7 +3301,7 @@ SwFrm* GetFrmOfModify( const SwRootFrm* pLayout, SwModify const& rMod, sal_uInt1
// Point not in rectangle. Compare distances:
const
Point
aCalcRectCenter
=
aCalcRect
.
Center
();
const
Point
aDiff
=
aCalcRectCenter
-
*
pPoint
;
const
sal_uInt64
nCurrentDist
=
aDiff
.
getX
()
*
aDiff
.
getX
()
+
aDiff
.
getY
()
*
aDiff
.
getY
(
);
// opt: no sqrt
const
sal_uInt64
nCurrentDist
=
sal_Int64
(
aDiff
.
getX
())
*
sal_Int64
(
aDiff
.
getX
())
+
sal_Int64
(
aDiff
.
getY
())
*
sal_Int64
(
aDiff
.
getY
()
);
// opt: no sqrt
if
(
!
pMinFrm
||
nCurrentDist
<
nMinDist
)
{
pMinFrm
=
pTmpFrm
;
...
...
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