# Is it a bug?

**URL:** https://discourse.vtk.org/t/is-it-a-bug/11739
**Category:** Support
**Tags:** code, proposal
**Created:** [June 16, 2023, 6:37am UTC](https://discourse.vtk.org/t/is-it-a-bug/11739 "2023-06-16T06:37:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wulicheng](https://discourse.vtk.org/user_avatar/discourse.vtk.org/wulicheng/32/1990_2.png) [@wulicheng](https://discourse.vtk.org/u/wulicheng)
#### Post date: [June 16, 2023, 6:37am UTC](https://discourse.vtk.org/t/is-it-a-bug/11739/1 "2023-06-16T06:37:21Z")

</div>

Hi, I think a bug was placed in vtk-9.2.2. In vtkResliceCursorRepresentation class at about line 309, line 310.  
in void vtkResliceCursorRepresentation::ResetCamera() function. It defined a vector of 3 dimensions like:

```auto
double worldFocalPoint[3];
 this->Renderer->GetWorldPoint(worldFocalPoint);

```

But when i debug in the GetWroldPoint function, it need a vector of 4 dimensions like i found in the vtkViewport class:

vtkSetVector4Macro(WorldPoint, double);  
vtkGetVectorMacro(WorldPoint, double, 4);

---

<div class="post-metadata">

### Author: ![LucasGandel](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lucasgandel/32/1831_2.png) [@LucasGandel](https://discourse.vtk.org/u/LucasGandel)
#### Post date: [June 16, 2023, 6:53am UTC](https://discourse.vtk.org/t/is-it-a-bug/11739/2 "2023-06-16T06:53:32Z")

</div>

The bug was confirmed and fixed in the master branch 7 months ago (see [here](https://gitlab.kitware.com/vtk/vtk/-/commit/afb22c24be25262e8f6f298d35c4f7bd5cdaa787)). It should be available in the next release.

For further requests, please use a meaningful title. “Is it a bug?” is not acceptable.
