Skip to content

Commit

Permalink
Dont propagate scale for US modality
Browse files Browse the repository at this point in the history
  • Loading branch information
rossetantoine committed Oct 28, 2013
1 parent 12f070e commit f31d791
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ViewerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -16064,13 +16064,15 @@ - (void) propagateSettingsToViewer: (ViewerController*) vC
// &&
// curvedController == nil)
{
// if( [[vC modality] isEqualToString:[self modality]]) For PET CT, we have to sync this even if the modalities are not equal!
BOOL propagateScale = YES;

if( [vC.modality isEqualToString: @"US"] || [self.modality isEqualToString: @"US"])
propagateScale = NO;

if( [DCMView noPropagateSettingsInSeriesForModality: [vC modality]] && [DCMView noPropagateSettingsInSeriesForModality: [self modality]])
{

}
else
propagateScale = NO;

if( propagateScale)
{
if( [imageView pixelSpacing] != 0 && [[vC imageView] pixelSpacing] != 0)
{
Expand Down

0 comments on commit f31d791

Please sign in to comment.