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
d0b9fe79
Kaydet (Commit)
d0b9fe79
authored
May 28, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#704962 Unchecked dynamic_cast
Change-Id: I6960b09ef68a9755469c42715f5ccd25ac3d3896
üst
551b054b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+7
-7
No files found.
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
d0b9fe79
...
...
@@ -3906,8 +3906,8 @@ void SwXCellRange::setPropertyValue(const OUString& rPropertyName, const uno::An
// remove actions to enable box selection
UnoActionRemoveContext
aRemoveContext
(
pDoc
);
}
SwUnoTableCrsr
*
pCrsr
=
dynamic_cast
<
SwUnoTableCrsr
*>
(
pTblCrsr
);
pCrsr
->
MakeBoxSels
();
SwUnoTableCrsr
&
rCrsr
=
dynamic_cast
<
SwUnoTableCrsr
&>
(
*
pTblCrsr
);
rCrsr
.
MakeBoxSels
();
switch
(
pEntry
->
nWID
)
{
case
FN_UNO_TABLE_CELL_BACKGROUND
:
...
...
@@ -3944,7 +3944,7 @@ void SwXCellRange::setPropertyValue(const OUString& rPropertyName, const uno::An
aBoxInfo
.
SetValid
(
nValid
,
true
);
aSet
.
Put
(
aBoxInfo
);
pDoc
->
GetTabBorders
(
*
p
Crsr
,
aSet
);
pDoc
->
GetTabBorders
(
r
Crsr
,
aSet
);
aSet
.
Put
(
aBoxInfo
);
SvxBoxItem
aBoxItem
((
const
SvxBoxItem
&
)
aSet
.
Get
(
RES_BOX
));
...
...
@@ -3957,7 +3957,7 @@ void SwXCellRange::setPropertyValue(const OUString& rPropertyName, const uno::An
{
SfxUInt32Item
aNumberFormat
(
RES_BOXATR_FORMAT
);
((
SfxPoolItem
&
)
aNumberFormat
).
PutValue
(
aValue
,
0
);
pDoc
->
SetBoxAttr
(
*
p
Crsr
,
aNumberFormat
);
pDoc
->
SetBoxAttr
(
r
Crsr
,
aNumberFormat
);
}
break
;
case
FN_UNO_RANGE_ROW_LABEL
:
...
...
@@ -3983,15 +3983,15 @@ void SwXCellRange::setPropertyValue(const OUString& rPropertyName, const uno::An
default
:
{
SfxItemSet
aItemSet
(
pDoc
->
GetAttrPool
(),
pEntry
->
nWID
,
pEntry
->
nWID
);
SwUnoCursorHelper
::
GetCrsrAttr
(
pCrsr
->
GetSelRing
(),
SwUnoCursorHelper
::
GetCrsrAttr
(
rCrsr
.
GetSelRing
(),
aItemSet
);
if
(
!
SwUnoCursorHelper
::
SetCursorPropertyValue
(
*
pEntry
,
aValue
,
pCrsr
->
GetSelRing
(),
aItemSet
))
*
pEntry
,
aValue
,
rCrsr
.
GetSelRing
(),
aItemSet
))
{
m_pPropSet
->
setPropertyValue
(
*
pEntry
,
aValue
,
aItemSet
);
}
SwUnoCursorHelper
::
SetCrsrAttr
(
pCrsr
->
GetSelRing
(),
SwUnoCursorHelper
::
SetCrsrAttr
(
rCrsr
.
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