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
a08f0aa2
Kaydet (Commit)
a08f0aa2
authored
May 30, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1302609 Division or modulo by zero
Change-Id: Ia578a948b776c15372d3940b350f20048bb6124c
üst
1abbba1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
tbcontrl.cxx
svx/source/tbxctrls/tbcontrl.cxx
+3
-5
No files found.
svx/source/tbxctrls/tbcontrl.cxx
Dosyayı görüntüle @
a08f0aa2
...
...
@@ -606,9 +606,9 @@ void SvxStyleBox_Impl::UserDrawEntry(const UserDrawEvent& rUDEvt, const OUString
void
SvxStyleBox_Impl
::
SetupEntry
(
sal_uInt16
nItem
,
const
Rectangle
&
rRect
,
OutputDevice
*
pDevice
,
const
OUString
&
rStyleName
,
bool
bIsNotSelected
)
{
unsigned
int
nId
=
rRect
.
GetHeight
()
!=
0
?
(
rRect
.
getY
()
/
rRect
.
GetHeight
())
:
MAX_STYLES_ENTRIES
;
if
(
nItem
==
0
||
nItem
==
GetEntryCount
()
-
1
)
{
unsigned
int
nId
=
(
rRect
.
getY
()
/
rRect
.
GetHeight
());
if
(
nId
<
MAX_STYLES_ENTRIES
&&
m_pButtons
[
nId
])
m_pButtons
[
nId
]
->
Hide
();
}
...
...
@@ -735,14 +735,12 @@ void SvxStyleBox_Impl::SetupEntry(sal_uInt16 nItem, const Rectangle& rRect, Outp
// handle the push-button
if
(
bIsNotSelected
)
{
unsigned
int
nId
=
(
rRect
.
getY
()
/
rRect
.
GetHeight
());
if
(
nId
<
MAX_STYLES_ENTRIES
&&
m_pButtons
[
nId
])
if
(
nId
<
MAX_STYLES_ENTRIES
&&
m_pButtons
[
nId
])
m_pButtons
[
nId
]
->
Hide
();
}
else
{
unsigned
int
nId
=
(
rRect
.
getY
()
/
rRect
.
GetHeight
());
if
(
nId
<
MAX_STYLES_ENTRIES
)
if
(
nId
<
MAX_STYLES_ENTRIES
)
{
if
(
m_pButtons
[
nId
]
==
nullptr
)
{
...
...
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