Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ken Martin
VTK
Commits
3fe8c432
Commit
3fe8c432
authored
Nov 14, 2014
by
Sankhesh Jhaveri
💬
Browse files
FIX: Tooltips not showing up when axis inverted.
Change-Id: I102302a612facfcd6e46a88e054f1fe05bf65950
parent
07b79ded
Changes
1
Hide whitespace changes
Inline
Side-by-side
Charts/Core/vtkChartXY.cxx
View file @
3fe8c432
...
...
@@ -1561,8 +1561,9 @@ bool vtkChartXY::LocatePointInPlots(const vtkContextMouseEvent &mouse,
transform
->
InverseTransformPoints
(
mouse
.
GetPos
().
GetData
(),
position
.
GetData
(),
1
);
// Use a tolerance of +/- 5 pixels
vtkVector2f
tolerance
(
5
*
(
1.0
/
transform
->
GetMatrix
()
->
GetElement
(
0
,
0
)),
5
*
(
1.0
/
transform
->
GetMatrix
()
->
GetElement
(
1
,
1
)));
vtkVector2f
tolerance
(
std
::
fabs
(
5
*
(
1.0
/
transform
->
GetMatrix
()
->
GetElement
(
0
,
0
))),
std
::
fabs
(
5
*
(
1.0
/
transform
->
GetMatrix
()
->
GetElement
(
1
,
1
))));
// Iterate through the visible plots and return on the first hit
vtkIdType
segmentIndex
=
-
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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