Commit 5e46d1ff9f3d9cf318789521196014bf5e870d04

Authored by Paulo Henrique Junqueira Amorim
1 parent 39a9ca65

FIX: Fixed synchronization between 2D slice and 3D slice in Sagitall and Axial orientation

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
invesalius/data/viewer_volume.py
... ... @@ -494,7 +494,7 @@ class SlicePlane:
494 494 elif(plane_axis == 1):
495 495 orientation = "AXIAL"
496 496 dimen = obj.GetInput().GetDimensions()
497   - number = abs(dimen[0] - number)
  497 + number = abs(dimen[0] - (number + 1))
498 498 else:
499 499 orientation = "SAGITAL"
500 500 else:
... ... @@ -503,7 +503,7 @@ class SlicePlane:
503 503 elif(plane_axis == 1):
504 504 orientation = "AXIAL"
505 505 dimen = obj.GetInput().GetDimensions()
506   - number = abs(dimen[0] - number)
  506 + number = abs(dimen[0] - (number + 1))
507 507 else:
508 508 orientation = "CORONAL"
509 509  
... ...