Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VTK
VTK
Commits
e24213c3
Commit
e24213c3
authored
Dec 19, 2013
by
Dave DeMarle
Committed by
Code Review
Dec 19, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge topic '0014200-incorrect-vtkAxisActor2D-scaling' into master
2d3ecda0
bug#0014200 fix incorrect text scaling
parents
0f33c6a7
2d3ecda0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Rendering/Annotation/vtkAxisActor2D.cxx
Rendering/Annotation/vtkAxisActor2D.cxx
+1
-1
No files found.
Rendering/Annotation/vtkAxisActor2D.cxx
View file @
e24213c3
...
...
@@ -388,7 +388,7 @@ void vtkAxisActor2D::BuildAxis(vtkViewport *viewport)
double
*
xp1
,
*
xp2
,
len
=
0.0
;
if
(
this
->
SizeFontRelativeToAxis
)
{
xp1
=
this
->
PositionCoordinate
->
GetComputedDouble
Display
Value
(
viewport
);
xp1
=
this
->
PositionCoordinate
->
GetComputedDouble
Viewport
Value
(
viewport
);
xp2
=
this
->
Position2Coordinate
->
GetComputedDoubleViewportValue
(
viewport
);
len
=
sqrt
((
xp2
[
0
]
-
xp1
[
0
])
*
(
xp2
[
0
]
-
xp1
[
0
])
+
(
xp2
[
1
]
-
xp1
[
1
])
*
(
xp2
[
1
]
-
xp1
[
1
]));
}
...
...
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