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
5d0da4db
Kaydet (Commit)
5d0da4db
authored
Kas 17, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1242824 Unused value
Change-Id: I5f53e538f8f76c337cda8b90fcf4ed717ed2476e
üst
b1bd96e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
SelectionHelper.cxx
chart2/source/controller/main/SelectionHelper.cxx
+2
-7
No files found.
chart2/source/controller/main/SelectionHelper.cxx
Dosyayı görüntüle @
5d0da4db
...
@@ -172,13 +172,12 @@ void Selection::adaptSelectionToNewPos( const Point& rMousePos, DrawViewWrapper*
...
@@ -172,13 +172,12 @@ void Selection::adaptSelectionToNewPos( const Point& rMousePos, DrawViewWrapper*
//bAllowMultiClickSelectionChange==true -> a second click on the same object can lead to a changed selection (e.g. series -> single data point)
//bAllowMultiClickSelectionChange==true -> a second click on the same object can lead to a changed selection (e.g. series -> single data point)
//get object to select:
//get object to select:
SdrObject
*
pNewObj
=
0
;
{
{
m_aSelectedOID_selectOnlyIfNoDoubleClickIsFollowing
=
ObjectIdentifier
();
m_aSelectedOID_selectOnlyIfNoDoubleClickIsFollowing
=
ObjectIdentifier
();
//the search for the object to select starts with the hit object deepest in the grouping hierarchy (a leaf in the tree)
//the search for the object to select starts with the hit object deepest in the grouping hierarchy (a leaf in the tree)
//further we travel along the grouping hierarchy from child to parent
//further we travel along the grouping hierarchy from child to parent
pNewObj
=
pDrawViewWrapper
->
getHitObject
(
rMousePos
);
SdrObject
*
pNewObj
=
pDrawViewWrapper
->
getHitObject
(
rMousePos
);
m_aSelectedOID
=
ObjectIdentifier
(
lcl_getObjectName
(
pNewObj
)
);
//name of pNewObj
m_aSelectedOID
=
ObjectIdentifier
(
lcl_getObjectName
(
pNewObj
)
);
//name of pNewObj
//ignore handle only objects for hit test
//ignore handle only objects for hit test
...
@@ -207,7 +206,6 @@ void Selection::adaptSelectionToNewPos( const Point& rMousePos, DrawViewWrapper*
...
@@ -207,7 +206,6 @@ void Selection::adaptSelectionToNewPos( const Point& rMousePos, DrawViewWrapper*
//if a sibling of the last selected object is clicked don't go up further
//if a sibling of the last selected object is clicked don't go up further
break
;
break
;
}
}
SdrObject
*
pLastChild
=
pNewObj
;
ObjectIdentifier
aLastChild
=
m_aSelectedOID
;
ObjectIdentifier
aLastChild
=
m_aSelectedOID
;
if
(
!
SelectionHelper
::
findNamedParent
(
pNewObj
,
m_aSelectedOID
,
false
)
)
if
(
!
SelectionHelper
::
findNamedParent
(
pNewObj
,
m_aSelectedOID
,
false
)
)
{
{
...
@@ -220,17 +218,15 @@ void Selection::adaptSelectionToNewPos( const Point& rMousePos, DrawViewWrapper*
...
@@ -220,17 +218,15 @@ void Selection::adaptSelectionToNewPos( const Point& rMousePos, DrawViewWrapper*
{
{
if
(
bAllowMultiClickSelectionChange
)
if
(
bAllowMultiClickSelectionChange
)
{
{
pNewObj
=
pLastChild
;
m_aSelectedOID
=
aLastChild
;
m_aSelectedOID
=
aLastChild
;
}
}
else
else
m_aSelectedOID_selectOnlyIfNoDoubleClickIsFollowing
=
aLastChild
;
m_aSelectedOID_selectOnlyIfNoDoubleClickIsFollowing
=
aLastChild
;
break
;
break
;
}
}
}
}
OSL_ENSURE
(
pNewObj
&&
m_aSelectedOID
.
isValid
(),
"somehow lost selected object"
);
OSL_ENSURE
(
m_aSelectedOID
.
isValid
(),
"somehow lost selected object"
);
}
}
else
else
{
{
...
@@ -281,7 +277,6 @@ void Selection::adaptSelectionToNewPos( const Point& rMousePos, DrawViewWrapper*
...
@@ -281,7 +277,6 @@ void Selection::adaptSelectionToNewPos( const Point& rMousePos, DrawViewWrapper*
if
(
pDrawViewWrapper
->
IsObjectHit
(
pLegend
,
rMousePos
)
)
if
(
pDrawViewWrapper
->
IsObjectHit
(
pLegend
,
rMousePos
)
)
{
{
m_aSelectedOID
=
ObjectIdentifier
(
aLegendCID
);
m_aSelectedOID
=
ObjectIdentifier
(
aLegendCID
);
pNewObj
=
pLegend
;
}
}
}
}
}
}
...
...
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