Mercurial > hg > orthanc
comparison Core/Images/JpegWriter.cpp @ 2223:29689b30f9ae
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 13 Dec 2016 15:28:05 +0100 |
parents | 35febe19e874 |
children | a3a65de1840f |
comparison
equal
deleted
inserted
replaced
2222:21713ce8717b | 2223:29689b30f9ae |
---|---|
103 } | 103 } |
104 | 104 |
105 | 105 |
106 void JpegWriter::SetQuality(uint8_t quality) | 106 void JpegWriter::SetQuality(uint8_t quality) |
107 { | 107 { |
108 if (quality <= 0 || quality > 100) | 108 if (quality == 0 || quality > 100) |
109 { | 109 { |
110 throw OrthancException(ErrorCode_ParameterOutOfRange); | 110 throw OrthancException(ErrorCode_ParameterOutOfRange); |
111 } | 111 } |
112 | 112 |
113 quality_ = quality; | 113 quality_ = quality; |