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
af3b804e
Kaydet (Commit)
af3b804e
authored
Şub 27, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1187685 Dereference null return value
Change-Id: I7f34eae7eedfa067f0f8a360aa6ae8dc5b0381bd
üst
602ca935
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
18 deletions
+15
-18
splitwin.cxx
vcl/source/window/splitwin.cxx
+15
-18
No files found.
vcl/source/window/splitwin.cxx
Dosyayı görüntüle @
af3b804e
...
...
@@ -2703,6 +2703,10 @@ void SplitWindow::RemoveItem( sal_uInt16 nId, bool bHide )
// Set suchen
sal_uInt16
nPos
;
ImplSplitSet
*
pSet
=
ImplFindItem
(
mpMainSet
,
nId
,
nPos
);
if
(
!
pSet
)
return
;
ImplSplitItem
*
pItem
=
&
(
pSet
->
mpItems
[
nPos
]);
Window
*
pWindow
=
pItem
->
mpWindow
;
Window
*
pOrgParent
=
pItem
->
mpOrgParent
;
...
...
@@ -2765,22 +2769,14 @@ void SplitWindow::Clear()
void
SplitWindow
::
SplitItem
(
sal_uInt16
nId
,
long
nNewSize
,
bool
bPropSmall
,
bool
bPropGreat
)
{
sal_uInt16
nItems
;
sal_uInt16
nPos
;
sal_uInt16
nMin
;
sal_uInt16
nMax
;
sal_uInt16
i
;
sal_uInt16
n
;
long
nDelta
;
long
nTempDelta
;
sal_uInt16
nPos
;
ImplSplitSet
*
pSet
=
ImplFindItem
(
mpBaseSet
,
nId
,
nPos
);
ImplSplitItem
*
pItems
;
if
(
!
pSet
)
if
(
!
pSet
)
return
;
nItems
=
pSet
->
mnItems
;
pItems
=
pSet
->
mpItems
;
sal_uInt16
nItems
=
pSet
->
mnItems
;
ImplSplitItem
*
pItems
=
pSet
->
mpItems
;
// When there is an explicit minimum or maximum size then move nNewSize
// into that range (when it is not yet already in it.)
...
...
@@ -2792,14 +2788,14 @@ void SplitWindow::SplitItem( sal_uInt16 nId, long nNewSize,
return
;
}
nDelta
=
nNewSize
-
pItems
[
nPos
].
mnPixSize
;
long
nDelta
=
nNewSize
-
pItems
[
nPos
].
mnPixSize
;
if
(
!
nDelta
)
return
;
// Bereich berechnen, der beim Splitten betroffen sein kann
nMin
=
0
;
nMax
=
nItems
;
for
(
i
=
0
;
i
<
nItems
;
i
++
)
sal_uInt16
nMin
=
0
;
sal_uInt16
nMax
=
nItems
;
for
(
sal_uInt16
i
=
0
;
i
<
nItems
;
++
i
)
{
if
(
pItems
[
i
].
mbFixed
)
{
...
...
@@ -2849,6 +2845,7 @@ void SplitWindow::SplitItem( sal_uInt16 nId, long nNewSize,
bPropGreat
=
bTemp
;
}
sal_uInt16
n
;
// Jetzt die Fenster splitten
if
(
nDelta
<
0
)
{
...
...
@@ -2856,7 +2853,7 @@ void SplitWindow::SplitItem( sal_uInt16 nId, long nNewSize,
{
if
(
bPropGreat
)
{
nTempDelta
=
nDelta
;
long
nTempDelta
=
nDelta
;
do
{
n
=
nPos
+
1
;
...
...
@@ -2925,7 +2922,7 @@ void SplitWindow::SplitItem( sal_uInt16 nId, long nNewSize,
{
if
(
bPropGreat
)
{
nTempDelta
=
nDelta
;
long
nTempDelta
=
nDelta
;
do
{
n
=
nPos
+
1
;
...
...
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