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
7b0b9da7
Kaydet (Commit)
7b0b9da7
authored
Şub 04, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1351756 Dereference before null check
Change-Id: Iae465c91693967983623087214e79e0f264c551c
üst
a18d3ed2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Control.java
wizards/com/sun/star/wizards/document/Control.java
+8
-8
No files found.
wizards/com/sun/star/wizards/document/Control.java
Dosyayı görüntüle @
7b0b9da7
...
@@ -185,21 +185,21 @@ public class Control extends Shape
...
@@ -185,21 +185,21 @@ public class Control extends Shape
else
else
{
{
Size
aPeerSize
=
getPeerSize
();
Size
aPeerSize
=
getPeerSize
();
int
a
Width
;
int
n
Width
;
if
(
aPeerSize
==
null
)
if
(
aPeerSize
==
null
)
a
Width
=
0
;
n
Width
=
0
;
else
else
a
Width
=
aPeerSize
.
Width
;
n
Width
=
aPeerSize
.
Width
;
// We increase the preferred Width a bit so that the control does not become too small
// We increase the preferred Width a bit so that the control does not become too small
// when we change the border from "3D" to "Flat"
// when we change the border from "3D" to "Flat"
if
(
getControlType
()
==
FormHandler
.
SOCHECKBOX
)
if
(
getControlType
()
==
FormHandler
.
SOCHECKBOX
)
{
{
return
a
Width
*
oFormHandler
.
getXPixelFactor
();
return
n
Width
*
oFormHandler
.
getXPixelFactor
();
}
}
else
else
{
{
return
(
a
Width
*
oFormHandler
.
getXPixelFactor
())
+
200
;
return
(
n
Width
*
oFormHandler
.
getXPixelFactor
())
+
200
;
}
}
}
}
}
}
...
@@ -213,11 +213,11 @@ public class Control extends Shape
...
@@ -213,11 +213,11 @@ public class Control extends Shape
else
else
{
{
Size
aPeerSize
=
getPeerSize
();
Size
aPeerSize
=
getPeerSize
();
int
nHeight
=
aPeerSize
.
Height
;
int
nHeight
;
if
(
aPeerSize
==
null
)
if
(
aPeerSize
==
null
)
nHeight
=
0
;
nHeight
=
0
;
else
else
nHeight
=
aPeerSize
.
Height
;
nHeight
=
aPeerSize
.
Height
;
// We increase the preferred Height a bit so that the control does not become too small
// We increase the preferred Height a bit so that the control does not become too small
// when we change the border from "3D" to "Flat"
// when we change the border from "3D" to "Flat"
...
...
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