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
d9f585b8
Kaydet (Commit)
d9f585b8
authored
Tem 06, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#706065 Unintended sign extension
Change-Id: If482c75af5128778a176c40e38000b78f2087131
üst
bbda9919
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
imivctl1.cxx
svtools/source/contnr/imivctl1.cxx
+4
-4
No files found.
svtools/source/contnr/imivctl1.cxx
Dosyayı görüntüle @
d9f585b8
...
@@ -3606,14 +3606,14 @@ sal_uLong SvxIconChoiceCtrl_Impl::GetPredecessorGrid( const Point& rPos) const
...
@@ -3606,14 +3606,14 @@ sal_uLong SvxIconChoiceCtrl_Impl::GetPredecessorGrid( const Point& rPos) const
Point
aPos
(
rPos
);
Point
aPos
(
rPos
);
aPos
.
X
()
-=
LROFFS_WINBORDER
;
aPos
.
X
()
-=
LROFFS_WINBORDER
;
aPos
.
Y
()
-=
TBOFFS_WINBORDER
;
aPos
.
Y
()
-=
TBOFFS_WINBORDER
;
sal_uInt16
nMaxCol
=
(
sal_uInt16
)(
aVirtOutputSize
.
Width
()
/
nGridDX
)
;
long
nMaxCol
=
aVirtOutputSize
.
Width
()
/
nGridDX
;
if
(
nMaxCol
)
if
(
nMaxCol
)
nMaxCol
--
;
nMaxCol
--
;
sal_uInt16
nGridX
=
(
sal_uInt16
)(
aPos
.
X
()
/
nGridDX
)
;
long
nGridX
=
aPos
.
X
()
/
nGridDX
;
if
(
nGridX
>
nMaxCol
)
if
(
nGridX
>
nMaxCol
)
nGridX
=
nMaxCol
;
nGridX
=
nMaxCol
;
sal_uInt16
nGridY
=
(
sal_uInt16
)(
aPos
.
Y
()
/
nGridDY
)
;
long
nGridY
=
aPos
.
Y
()
/
nGridDY
;
sal_uInt16
nGridsX
=
(
sal_uInt16
)(
aOutputSize
.
Width
()
/
nGridDX
)
;
long
nGridsX
=
aOutputSize
.
Width
()
/
nGridDX
;
sal_uLong
nGrid
=
(
nGridY
*
nGridsX
)
+
nGridX
;
sal_uLong
nGrid
=
(
nGridY
*
nGridsX
)
+
nGridX
;
long
nMiddle
=
(
nGridX
*
nGridDX
)
+
(
nGridDX
/
2
);
long
nMiddle
=
(
nGridX
*
nGridDX
)
+
(
nGridDX
/
2
);
if
(
rPos
.
X
()
<
nMiddle
)
if
(
rPos
.
X
()
<
nMiddle
)
...
...
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