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
0ae60c3c
Kaydet (Commit)
0ae60c3c
authored
Ock 28, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#705898 Dereference before null check
Change-Id: I16029411bd758914e87c7dc020ff8779218fefaa
üst
3acf5f61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
svdedxv.cxx
svx/source/svdraw/svdedxv.cxx
+8
-5
No files found.
svx/source/svdraw/svdedxv.cxx
Dosyayı görüntüle @
0ae60c3c
...
...
@@ -1228,11 +1228,14 @@ sal_Bool SdrObjEditView::MouseButtonDown(const MouseEvent& rMEvt, Window* pWin)
}
if
(
bPostIt
)
{
Point
aPixPos
(
rMEvt
.
GetPosPixel
());
Rectangle
aR
(
pWin
->
LogicToPixel
(
pTextEditOutlinerView
->
GetOutputArea
()));
if
(
aPixPos
.
X
()
<
aR
.
Left
())
aPixPos
.
X
()
=
aR
.
Left
();
if
(
aPixPos
.
X
()
>
aR
.
Right
())
aPixPos
.
X
()
=
aR
.
Right
();
if
(
aPixPos
.
Y
()
<
aR
.
Top
())
aPixPos
.
Y
()
=
aR
.
Top
();
if
(
aPixPos
.
Y
()
>
aR
.
Bottom
())
aPixPos
.
Y
()
=
aR
.
Bottom
();
if
(
pWin
)
{
Rectangle
aR
(
pWin
->
LogicToPixel
(
pTextEditOutlinerView
->
GetOutputArea
()));
if
(
aPixPos
.
X
()
<
aR
.
Left
())
aPixPos
.
X
()
=
aR
.
Left
();
if
(
aPixPos
.
X
()
>
aR
.
Right
())
aPixPos
.
X
()
=
aR
.
Right
();
if
(
aPixPos
.
Y
()
<
aR
.
Top
())
aPixPos
.
Y
()
=
aR
.
Top
();
if
(
aPixPos
.
Y
()
>
aR
.
Bottom
())
aPixPos
.
Y
()
=
aR
.
Bottom
();
}
MouseEvent
aMEvt
(
aPixPos
,
rMEvt
.
GetClicks
(),
rMEvt
.
GetMode
(),
rMEvt
.
GetButtons
(),
rMEvt
.
GetModifier
());
if
(
pTextEditOutlinerView
->
MouseButtonDown
(
aMEvt
))
{
...
...
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