# Centered Jump Slice doesn't restore

**URL:** <https://discourse.slicer.org/t/centered-jump-slice-doesnt-restore/20295>\
**Category:** Development\
**Created:** [October 22, 2021, 1:20am UTC](https://discourse.slicer.org/t/centered-jump-slice-doesnt-restore/20295 "2021-10-22T01:20:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [October 22, 2021, 1:20am UTC](https://discourse.slicer.org/t/centered-jump-slice-doesnt-restore/20295/1 "2021-10-22T01:20:42Z")

</div>

I have a scene file that I’ve switched to use Centered Jump Slice crosshair behavior. But when I save the file, quit slicer, restart slicer, and open the file, the Centered Jump Slice behavior isn’t restored, and I get the following error:

```
Failed to read #xmlAttributeName attribute value from string 'CenteredJumpSlice'

```

I looked through the code to see if it should be “Centered Jump Slice” instead of “CenteredJumpSlice” but didn’t see anything obvious… Any ideas?

Thanks!!!

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [October 22, 2021, 1:27am UTC](https://discourse.slicer.org/t/centered-jump-slice-doesnt-restore/20295/2 "2021-10-22T01:27:22Z")

</div>

I did also notice this while grepping through the code:

```
Libs/MRML/Core/vtkMRMLCrosshairNode.h: CenteredJumpSlice = 2,
Libs/MRML/Core/vtkMRMLSliceNode.h: enum {DefaultJumpSlice=-1, CenteredJumpSlice=0, OffsetJumpSlice};

```

Shouldn’t matter, because these are in different name spaces (different classes)?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 22, 2021, 3:15pm UTC](https://discourse.slicer.org/t/centered-jump-slice-doesnt-restore/20295/3 "2021-10-22T15:15:59Z")

</div>

Thank you good catch, it was just a side effect of some line reordering. I’ll push a fix today.

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [October 22, 2021, 3:16pm UTC](https://discourse.slicer.org/t/centered-jump-slice-doesnt-restore/20295/4 "2021-10-22T15:16:44Z")

</div>

Awesome, thanks again!
