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
a4b3f834
Kaydet (Commit)
a4b3f834
authored
Ock 27, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1158247 Dereference before null check
Change-Id: I01037daf7188c4d934cee52e415b56d8df4d3252
üst
2018771e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
54 deletions
+51
-54
accmap.cxx
sw/source/core/access/accmap.cxx
+51
-54
No files found.
sw/source/core/access/accmap.cxx
Dosyayı görüntüle @
a4b3f834
...
...
@@ -1306,7 +1306,7 @@ void SwAccessibleMap::InvalidateShapeInParaSelection()
if
(
pFrm
&&
mpFrmMap
)
{
aIter
=
mpFrmMap
->
find
(
pFrm
);
SwAccessibleContextMap_Impl
::
iterator
aIter
=
mpFrmMap
->
find
(
pFrm
);
if
(
aIter
!=
mpFrmMap
->
end
()
)
{
uno
::
Reference
<
XAccessible
>
xAcc
=
(
*
aIter
).
second
;
...
...
@@ -1341,7 +1341,7 @@ void SwAccessibleMap::InvalidateShapeInParaSelection()
mpSeletedFrmMap
=
new
SwAccessibleContextMap_Impl
;
if
(
!
mpSeletedFrmMap
->
empty
()
)
{
aIter
=
mpSeletedFrmMap
->
begin
();
SwAccessibleContextMap_Impl
::
iterator
aIter
=
mpSeletedFrmMap
->
begin
();
while
(
aIter
!=
mpSeletedFrmMap
->
end
()
)
{
uno
::
Reference
<
XAccessible
>
xAcc
=
(
*
aIter
).
second
;
...
...
@@ -1356,7 +1356,7 @@ void SwAccessibleMap::InvalidateShapeInParaSelection()
if
(
!
mapTemp
.
empty
()
)
{
aIter
=
mapTemp
.
begin
();
SwAccessibleContextMap_Impl
::
iterator
aIter
=
mapTemp
.
begin
();
while
(
aIter
!=
mapTemp
.
end
()
)
{
mpSeletedFrmMap
->
insert
(
SwAccessibleContextMap_Impl
::
value_type
(
(
*
aIter
).
first
,
(
*
aIter
).
second
)
);
...
...
@@ -2650,78 +2650,75 @@ void SwAccessibleMap::InvalidateCursorPosition( const SwFrm *pFrm )
}
else
if
(
bShapeSelected
)
{
const
SwFEShell
*
pFESh
=
pVSh
?
static_cast
<
const
SwFEShell
*
>
(
pVSh
)
:
NULL
;
if
(
pFESh
)
const
SwFEShell
*
pFESh
=
static_cast
<
const
SwFEShell
*
>
(
pVSh
);
const
SdrMarkList
*
pMarkList
=
pFESh
->
GetMarkList
();
if
(
pMarkList
!=
NULL
&&
pMarkList
->
GetMarkCount
()
==
1
)
{
const
SdrMarkList
*
pMarkList
=
pFESh
->
GetMarkList
();
if
(
pMarkList
!=
NULL
&&
pMarkList
->
GetMarkCount
()
==
1
)
SdrObject
*
pObj
=
pMarkList
->
GetMark
(
0
)
->
GetMarkedSdrObj
();
::
rtl
::
Reference
<
::
accessibility
::
AccessibleShape
>
pAccShapeImpl
=
GetContextImpl
(
pObj
,
NULL
,
sal_False
);
if
(
!
pAccShapeImpl
.
is
())
{
SdrObject
*
pObj
=
pMarkList
->
GetMark
(
0
)
->
GetMarkedSdrObj
();
::
rtl
::
Reference
<
::
accessibility
::
AccessibleShape
>
pAccShapeImpl
=
GetContextImpl
(
pObj
,
NULL
,
sal_False
);
if
(
!
pAccShapeImpl
.
is
())
while
(
pObj
&&
pObj
->
GetUpGroup
())
{
while
(
pObj
&&
pObj
->
GetUpGroup
())
{
pObj
=
pObj
->
GetUpGroup
();
}
if
(
pObj
!=
NULL
)
pObj
=
pObj
->
GetUpGroup
();
}
if
(
pObj
!=
NULL
)
{
const
SwFrm
*
pParent
=
SwAccessibleFrame
::
GetParent
(
SwAccessibleChild
(
pObj
),
GetShell
()
->
IsPreview
()
);
if
(
pParent
)
{
const
SwFrm
*
pParent
=
SwAccessibleFrame
::
GetParent
(
SwAccessibleChild
(
pObj
),
GetShell
()
->
IsPreview
()
);
if
(
pParent
)
::
rtl
::
Reference
<
SwAccessibleContext
>
xParentAccImpl
=
GetContextImpl
(
pParent
,
sal_False
);
if
(
!
xParentAccImpl
.
is
()
)
{
::
rtl
::
Reference
<
SwAccessibleContext
>
xParentAccImpl
=
GetContextImpl
(
pParent
,
sal_False
);
if
(
!
xParentAccImpl
.
is
()
)
const
SwTabFrm
*
pTabFrm
=
pParent
->
FindTabFrm
(
);
if
(
pTabFrm
)
{
const
SwTabFrm
*
pTabFrm
=
pParent
->
FindTabFrm
();
if
(
pTabFrm
)
{
//The Table should not add in acc.because the "pParent" is not add to acc .
uno
::
Reference
<
XAccessible
>
xAccParentTab
=
GetContext
(
pTabFrm
,
sal_True
);
//Should Create.
//The Table should not add in acc.because the "pParent" is not add to acc .
uno
::
Reference
<
XAccessible
>
xAccParentTab
=
GetContext
(
pTabFrm
,
sal_True
);
//Should Create.
const
SwFrm
*
pParentRoot
=
SwAccessibleFrame
::
GetParent
(
SwAccessibleChild
(
pTabFrm
),
GetShell
()
->
IsPreview
()
);
if
(
pParentRoot
)
{
::
rtl
::
Reference
<
SwAccessibleContext
>
xParentAccImplRoot
=
GetContextImpl
(
pParentRoot
,
sal_False
);
if
(
xParentAccImplRoot
.
is
())
{
AccessibleEventObject
aEvent
;
aEvent
.
EventId
=
AccessibleEventId
::
CHILD
;
aEvent
.
NewValue
<<=
xAccParentTab
;
xParentAccImplRoot
->
FireAccessibleEvent
(
aEvent
);
}
}
//Get "pParent" acc again.
xParentAccImpl
=
GetContextImpl
(
pParent
,
sal_False
);
}
else
const
SwFrm
*
pParentRoot
=
SwAccessibleFrame
::
GetParent
(
SwAccessibleChild
(
pTabFrm
),
GetShell
()
->
IsPreview
()
);
if
(
pParentRoot
)
{
//directly create this acc para .
xParentAccImpl
=
GetContextImpl
(
pParent
,
sal_True
);
//Should Create.
const
SwFrm
*
pParentRoot
=
SwAccessibleFrame
::
GetParent
(
SwAccessibleChild
(
pParent
),
GetShell
()
->
IsPreview
()
);
::
rtl
::
Reference
<
SwAccessibleContext
>
xParentAccImplRoot
=
GetContextImpl
(
pParentRoot
,
sal_False
);
if
(
xParentAccImplRoot
.
is
())
{
AccessibleEventObject
aEvent
;
aEvent
.
EventId
=
AccessibleEventId
::
CHILD
;
aEvent
.
NewValue
<<=
uno
::
Reference
<
XAccessible
>
(
xParentAccImpl
.
get
())
;
aEvent
.
NewValue
<<=
xAccParentTab
;
xParentAccImplRoot
->
FireAccessibleEvent
(
aEvent
);
}
}
//Get "pParent" acc again.
xParentAccImpl
=
GetContextImpl
(
pParent
,
sal_False
);
}
if
(
xParentAccImpl
.
is
())
else
{
uno
::
Reference
<
XAccessible
>
xAccShape
=
GetContext
(
pObj
,
xParentAccImpl
.
get
(),
sal_True
);
//directly create this acc para .
xParentAccImpl
=
GetContextImpl
(
pParent
,
sal_True
);
//Should Create.
AccessibleEventObject
aEvent
;
aEvent
.
EventId
=
AccessibleEventId
::
CHILD
;
aEvent
.
NewValue
<<=
xAccShape
;
xParentAccImpl
->
FireAccessibleEvent
(
aEvent
);
const
SwFrm
*
pParentRoot
=
SwAccessibleFrame
::
GetParent
(
SwAccessibleChild
(
pParent
),
GetShell
()
->
IsPreview
()
);
::
rtl
::
Reference
<
SwAccessibleContext
>
xParentAccImplRoot
=
GetContextImpl
(
pParentRoot
,
sal_False
);
if
(
xParentAccImplRoot
.
is
())
{
AccessibleEventObject
aEvent
;
aEvent
.
EventId
=
AccessibleEventId
::
CHILD
;
aEvent
.
NewValue
<<=
uno
::
Reference
<
XAccessible
>
(
xParentAccImpl
.
get
());
xParentAccImplRoot
->
FireAccessibleEvent
(
aEvent
);
}
}
}
if
(
xParentAccImpl
.
is
())
{
uno
::
Reference
<
XAccessible
>
xAccShape
=
GetContext
(
pObj
,
xParentAccImpl
.
get
(),
sal_True
);
AccessibleEventObject
aEvent
;
aEvent
.
EventId
=
AccessibleEventId
::
CHILD
;
aEvent
.
NewValue
<<=
xAccShape
;
xParentAccImpl
->
FireAccessibleEvent
(
aEvent
);
}
}
}
}
...
...
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