Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
ef33ed8d
Commit
ef33ed8d
authored
Jul 16, 1995
by
Will Schroeder
Browse files
ERR: FIxed colors reallocation bug.
parent
d7e7f9e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/PolyMap.cc
View file @
ef33ed8d
...
@@ -117,8 +117,7 @@ void vtkPolyMapper::Render(vtkRenderer *ren)
...
@@ -117,8 +117,7 @@ void vtkPolyMapper::Render(vtkRenderer *ren)
{
{
int
numColors
=
this
->
Colors
->
GetNumberOfColors
();
int
numColors
=
this
->
Colors
->
GetNumberOfColors
();
colors
=
this
->
Colors
;
colors
=
this
->
Colors
;
if
(
numColors
<
numPts
)
colors
->
Squeeze
();
if
(
numColors
<
numPts
)
colors
->
Allocate
(
numPts
);
else
if
(
numColors
>
numPts
)
colors
->
Allocate
(
numPts
);
}
}
this
->
LookupTable
->
SetTableRange
(
this
->
ScalarRange
);
this
->
LookupTable
->
SetTableRange
(
this
->
ScalarRange
);
...
...
Write
Preview
Supports
Markdown
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