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
f10c365f
Kaydet (Commit)
f10c365f
authored
Şub 27, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1187663 Dereference after null check
Change-Id: Icd652f0d1e24a22bb4cc42f6ea6b9409f6807a1a
üst
3c095024
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
20 deletions
+19
-20
viewfun7.cxx
sc/source/ui/view/viewfun7.cxx
+19
-20
No files found.
sc/source/ui/view/viewfun7.cxx
Dosyayı görüntüle @
f10c365f
...
@@ -379,32 +379,31 @@ bool ScViewFunc::PasteGraphic( const Point& rPos, const Graphic& rGraphic,
...
@@ -379,32 +379,31 @@ bool ScViewFunc::PasteGraphic( const Point& rPos, const Graphic& rGraphic,
MakeDrawLayer
();
MakeDrawLayer
();
ScDrawView
*
pScDrawView
=
GetScDrawView
();
ScDrawView
*
pScDrawView
=
GetScDrawView
();
if
(
!
pScDrawView
)
return
false
;
// #i123922# check if the drop was over an existing object; if yes, evtl. replace
// #i123922# check if the drop was over an existing object; if yes, evtl. replace
// the graphic for a SdrGraphObj (including link state updates) or adapt the fill
// the graphic for a SdrGraphObj (including link state updates) or adapt the fill
// style for other objects
// style for other objects
if
(
pScDrawView
)
SdrPageView
*
pPageView
=
pScDrawView
->
GetSdrPageView
();
if
(
pPageView
)
{
{
SdrPageView
*
pPageView
=
pScDrawView
->
GetSdrPageView
();
SdrObject
*
pPickObj
=
0
;
if
(
pScDrawView
->
PickObj
(
rPos
,
pScDrawView
->
getHitTolLog
(),
pPickObj
,
pPageView
))
if
(
pPageView
)
{
{
SdrObject
*
pPickObj
=
0
;
const
OUString
aBeginUndo
(
ScGlobal
::
GetRscString
(
STR_UNDO_DRAGDROP
));
if
(
pScDrawView
->
PickObj
(
rPos
,
pScDrawView
->
getHitTolLog
(),
pPickObj
,
pPageView
))
SdrObject
*
pResult
=
pScDrawView
->
ApplyGraphicToObject
(
*
pPickObj
,
rGraphic
,
aBeginUndo
,
rFile
,
rFilter
);
if
(
pResult
)
{
{
const
OUString
aBeginUndo
(
ScGlobal
::
GetRscString
(
STR_UNDO_DRAGDROP
));
// we are done; mark the modified/new object
SdrObject
*
pResult
=
pScDrawView
->
ApplyGraphicToObject
(
pScDrawView
->
MarkObj
(
pResult
,
pScDrawView
->
GetSdrPageView
());
*
pPickObj
,
return
true
;
rGraphic
,
aBeginUndo
,
rFile
,
rFilter
);
if
(
pResult
)
{
// we are done; mark the modified/new object
pScDrawView
->
MarkObj
(
pResult
,
pScDrawView
->
GetSdrPageView
());
return
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