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
3768b305
Kaydet (Commit)
3768b305
authored
Ock 24, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#704751 Explicit null dereferenced
Change-Id: If95204a7e8e47ef62599da3374b6a2908e495493
üst
65ff0a58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
fuoaprms.cxx
sd/source/ui/func/fuoaprms.cxx
+16
-13
No files found.
sd/source/ui/func/fuoaprms.cxx
Dosyayı görüntüle @
3768b305
...
...
@@ -654,21 +654,24 @@ void FuObjectAnimationParameters::DoExecute( SfxRequest& rReq )
pRunningObj
=
pObject1
;
}
DBG_ASSERT
(
pPath
,
"no curve found"
);
assert
(
pRunningObj
&&
pPath
&&
"no curve found"
);
// push the running object to the end of the curve
Rectangle
aCurRect
(
pRunningObj
->
GetLogicRect
());
Point
aCurCenter
(
aCurRect
.
Center
());
const
::
basegfx
::
B2DPolyPolygon
&
rPolyPolygon
=
pPath
->
GetPathPoly
();
sal_uInt32
nNoOfPolygons
(
rPolyPolygon
.
count
());
const
::
basegfx
::
B2DPolygon
aPolygon
(
rPolyPolygon
.
getB2DPolygon
(
nNoOfPolygons
-
1L
));
sal_uInt32
nPoints
(
aPolygon
.
count
());
const
::
basegfx
::
B2DPoint
aNewB2DCenter
(
aPolygon
.
getB2DPoint
(
nPoints
-
1L
));
const
Point
aNewCenter
(
FRound
(
aNewB2DCenter
.
getX
()),
FRound
(
aNewB2DCenter
.
getY
()));
Size
aDistance
(
aNewCenter
.
X
()
-
aCurCenter
.
X
(),
aNewCenter
.
Y
()
-
aCurCenter
.
Y
());
pRunningObj
->
Move
(
aDistance
);
pUndoMgr
->
AddUndoAction
(
mpDoc
->
GetSdrUndoFactory
().
CreateUndoMoveObject
(
*
pRunningObj
,
aDistance
));
if
(
pRunningObj
)
{
Rectangle
aCurRect
(
pRunningObj
->
GetLogicRect
());
Point
aCurCenter
(
aCurRect
.
Center
());
const
::
basegfx
::
B2DPolyPolygon
&
rPolyPolygon
=
pPath
->
GetPathPoly
();
sal_uInt32
nNoOfPolygons
(
rPolyPolygon
.
count
());
const
::
basegfx
::
B2DPolygon
aPolygon
(
rPolyPolygon
.
getB2DPolygon
(
nNoOfPolygons
-
1L
));
sal_uInt32
nPoints
(
aPolygon
.
count
());
const
::
basegfx
::
B2DPoint
aNewB2DCenter
(
aPolygon
.
getB2DPoint
(
nPoints
-
1L
));
const
Point
aNewCenter
(
FRound
(
aNewB2DCenter
.
getX
()),
FRound
(
aNewB2DCenter
.
getY
()));
Size
aDistance
(
aNewCenter
.
X
()
-
aCurCenter
.
X
(),
aNewCenter
.
Y
()
-
aCurCenter
.
Y
());
pRunningObj
->
Move
(
aDistance
);
pUndoMgr
->
AddUndoAction
(
mpDoc
->
GetSdrUndoFactory
().
CreateUndoMoveObject
(
*
pRunningObj
,
aDistance
));
}
}
for
(
size_t
nObject
=
0
;
nObject
<
nCount
;
++
nObject
)
...
...
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