comparison Framework/DicomizerParameters.cpp @ 321:0c34b6625c67

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Oct 2024 15:01:46 +0200
parents 0683312e21ba
children 429c4efa1fde
comparison
equal deleted inserted replaced
320:196d0e18afa0 321:0c34b6625c67
363 } 363 }
364 364
365 365
366 void DicomizerParameters::SetTiffAlignment(unsigned int alignment) 366 void DicomizerParameters::SetTiffAlignment(unsigned int alignment)
367 { 367 {
368 if (alignment <= 0) 368 if (alignment == 0)
369 { 369 {
370 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 370 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
371 } 371 }
372 else 372 else
373 { 373 {