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
554bfc1d
Kaydet (Commit)
554bfc1d
authored
Mar 07, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SdrHdlList: fix indentation in IsHdlListHit() and GetHdl()
Change-Id: Icc59bfc612903d993fb4b091a28efe23e366475f
üst
3b585737
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
30 deletions
+30
-30
svdhdl.cxx
svx/source/svdraw/svdhdl.cxx
+30
-30
No files found.
svx/source/svdraw/svdhdl.cxx
Dosyayı görüntüle @
554bfc1d
...
...
@@ -2165,40 +2165,40 @@ void SdrHdlList::AddHdl(SdrHdl* pHdl, bool bAtBegin)
SdrHdl
*
SdrHdlList
::
IsHdlListHit
(
const
Point
&
rPnt
,
bool
bBack
,
bool
bNext
,
SdrHdl
*
pHdl0
)
const
{
SdrHdl
*
pRet
=
NULL
;
const
size_t
nAnz
=
GetHdlCount
();
size_t
nNum
=
bBack
?
0
:
nAnz
;
while
((
bBack
?
nNum
<
nAnz
:
nNum
>
0
)
&&
pRet
==
NULL
)
{
if
(
!
bBack
)
nNum
--
;
SdrHdl
*
pHdl
=
GetHdl
(
nNum
);
if
(
bNext
)
{
if
(
pHdl
==
pHdl0
)
bNext
=
false
;
}
else
{
if
(
pHdl
->
IsHdlHit
(
rPnt
))
pRet
=
pHdl
;
}
if
(
bBack
)
nNum
++
;
}
return
pRet
;
SdrHdl
*
pRet
=
NULL
;
const
size_t
nAnz
=
GetHdlCount
();
size_t
nNum
=
bBack
?
0
:
nAnz
;
while
((
bBack
?
nNum
<
nAnz
:
nNum
>
0
)
&&
pRet
==
NULL
)
{
if
(
!
bBack
)
nNum
--
;
SdrHdl
*
pHdl
=
GetHdl
(
nNum
);
if
(
bNext
)
{
if
(
pHdl
==
pHdl0
)
bNext
=
false
;
}
else
{
if
(
pHdl
->
IsHdlHit
(
rPnt
))
pRet
=
pHdl
;
}
if
(
bBack
)
nNum
++
;
}
return
pRet
;
}
SdrHdl
*
SdrHdlList
::
GetHdl
(
SdrHdlKind
eKind1
)
const
{
SdrHdl
*
pRet
=
NULL
;
for
(
size_t
i
=
0
;
i
<
GetHdlCount
()
&&
pRet
==
NULL
;
++
i
)
{
SdrHdl
*
pHdl
=
GetHdl
(
i
);
if
(
pHdl
->
GetKind
()
==
eKind1
)
pRet
=
pHdl
;
}
return
pRet
;
SdrHdl
*
pRet
=
NULL
;
for
(
size_t
i
=
0
;
i
<
GetHdlCount
()
&&
pRet
==
NULL
;
++
i
)
{
SdrHdl
*
pHdl
=
GetHdl
(
i
);
if
(
pHdl
->
GetKind
()
==
eKind1
)
pRet
=
pHdl
;
}
return
pRet
;
}
SdrCropHdl
::
SdrCropHdl
(
...
...
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