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
16190d6e
Kaydet (Commit)
16190d6e
authored
May 28, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#704971 Unchecked dynamic_cast
Change-Id: Ic5983001ea739fc04c15c0852b6693c9cc9bfabd
üst
82f02546
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+5
-5
No files found.
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
16190d6e
...
...
@@ -1813,14 +1813,14 @@ void SwXTextTableCursor::setPropertyValue(const OUString& rPropertyName, const u
SwStartNode
*
pSttNode
=
pUnoCrsr
->
GetNode
()
->
StartOfSectionNode
();
const
SwTableNode
*
pTblNode
=
pSttNode
->
FindTableNode
();
lcl_FormatTable
((
SwFrmFmt
*
)
pTblNode
->
GetTable
().
GetFrmFmt
());
SwUnoTableCrsr
*
pTblCrsr
=
dynamic_cast
<
SwUnoTableCrsr
*>
(
pUnoCrsr
);
SwUnoTableCrsr
&
rTblCrsr
=
dynamic_cast
<
SwUnoTableCrsr
&>
(
*
pUnoCrsr
);
const
SfxItemPropertySimpleEntry
*
pEntry
=
m_pPropSet
->
getPropertyMap
().
getByName
(
rPropertyName
);
if
(
pEntry
)
{
if
(
pEntry
->
nFlags
&
beans
::
PropertyAttribute
::
READONLY
)
throw
beans
::
PropertyVetoException
(
"Property is read-only: "
+
rPropertyName
,
static_cast
<
cppu
::
OWeakObject
*
>
(
this
)
);
pTblCrsr
->
MakeBoxSels
();
rTblCrsr
.
MakeBoxSels
();
SwDoc
*
pDoc
=
pUnoCrsr
->
GetDoc
();
switch
(
pEntry
->
nWID
)
{
...
...
@@ -1846,15 +1846,15 @@ void SwXTextTableCursor::setPropertyValue(const OUString& rPropertyName, const u
default
:
{
SfxItemSet
aItemSet
(
pDoc
->
GetAttrPool
(),
pEntry
->
nWID
,
pEntry
->
nWID
);
SwUnoCursorHelper
::
GetCrsrAttr
(
pTblCrsr
->
GetSelRing
(),
SwUnoCursorHelper
::
GetCrsrAttr
(
rTblCrsr
.
GetSelRing
(),
aItemSet
);
if
(
!
SwUnoCursorHelper
::
SetCursorPropertyValue
(
*
pEntry
,
aValue
,
pTblCrsr
->
GetSelRing
(),
aItemSet
))
*
pEntry
,
aValue
,
rTblCrsr
.
GetSelRing
(),
aItemSet
))
{
m_pPropSet
->
setPropertyValue
(
*
pEntry
,
aValue
,
aItemSet
);
}
SwUnoCursorHelper
::
SetCrsrAttr
(
pTblCrsr
->
GetSelRing
(),
SwUnoCursorHelper
::
SetCrsrAttr
(
rTblCrsr
.
GetSelRing
(),
aItemSet
,
nsSetAttrMode
::
SETATTR_DEFAULT
,
true
);
}
}
...
...
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