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
b30499e2
Kaydet (Commit)
b30499e2
authored
Ara 27, 2017
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
mnHitTolLog is already sal_uInt16
Change-Id: I4a0e55818ad8e2f61845484a71b6283e0a7c326a
üst
541f369f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
svdmrkv.cxx
svx/source/svdraw/svdmrkv.cxx
+5
-6
No files found.
svx/source/svdraw/svdmrkv.cxx
Dosyayı görüntüle @
b30499e2
...
...
@@ -1913,7 +1913,6 @@ bool SdrMarkView::PickMarkedObj(const Point& rPnt, SdrObject*& rpObj, SdrPageVie
bool
bCheckNearestOn3rdPass
(
nOptions
&
SdrSearchOptions
::
PASS3NEAREST
);
rpObj
=
nullptr
;
rpPV
=
nullptr
;
sal_uInt16
nTol
=
(
sal_uInt16
)
mnHitTolLog
;
bool
bFnd
=
false
;
const
size_t
nMarkCount
=
GetMarkedObjectCount
();
for
(
size_t
nMarkNum
=
nMarkCount
;
nMarkNum
>
0
&&
!
bFnd
;)
{
...
...
@@ -1921,7 +1920,7 @@ bool SdrMarkView::PickMarkedObj(const Point& rPnt, SdrObject*& rpObj, SdrPageVie
SdrMark
*
pM
=
GetSdrMarkByIndex
(
nMarkNum
);
SdrPageView
*
pPV
=
pM
->
GetPageView
();
SdrObject
*
pObj
=
pM
->
GetMarkedSdrObj
();
bFnd
=
nullptr
!=
CheckSingleSdrObjectHit
(
rPnt
,
nTol
,
pObj
,
pPV
,
SdrSearchOptions
::
TESTMARKABLE
,
nullptr
);
bFnd
=
nullptr
!=
CheckSingleSdrObjectHit
(
rPnt
,
mnHitTolLog
,
pObj
,
pPV
,
SdrSearchOptions
::
TESTMARKABLE
,
nullptr
);
if
(
bFnd
)
{
rpObj
=
pObj
;
rpPV
=
pPV
;
...
...
@@ -1937,10 +1936,10 @@ bool SdrMarkView::PickMarkedObj(const Point& rPnt, SdrObject*& rpObj, SdrPageVie
SdrPageView
*
pPV
=
pM
->
GetPageView
();
SdrObject
*
pObj
=
pM
->
GetMarkedSdrObj
();
tools
::
Rectangle
aRect
(
pObj
->
GetCurrentBoundRect
());
aRect
.
Left
()
-=
nTol
;
aRect
.
Top
()
-=
nTol
;
aRect
.
Right
()
+=
nTol
;
aRect
.
Bottom
()
+=
nTol
;
aRect
.
Left
()
-=
mnHitTolLog
;
aRect
.
Top
()
-=
mnHitTolLog
;
aRect
.
Right
()
+=
mnHitTolLog
;
aRect
.
Bottom
()
+=
mnHitTolLog
;
if
(
aRect
.
IsInside
(
rPnt
))
{
bFnd
=
true
;
rpObj
=
pObj
;
...
...
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