Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyLayer.cpp @ 1117:383aa2a7d426 broker
integration mainline->broker
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Nov 2019 15:54:57 +0100 |
parents | b537002f83a9 d33ae2b0db9d |
children | d7e06542304c |
comparison
equal
deleted
inserted
replaced
1116:a08699daf78b | 1117:383aa2a7d426 |
---|---|
222 } | 222 } |
223 | 223 |
224 void RadiographyLayer::SetSize(unsigned int width, | 224 void RadiographyLayer::SetSize(unsigned int width, |
225 unsigned int height) | 225 unsigned int height) |
226 { | 226 { |
227 if (hasSize_ && | |
228 (width != width_ || | |
229 height != height_)) | |
230 { | |
231 throw Orthanc::OrthancException(Orthanc::ErrorCode_IncompatibleImageSize); | |
232 } | |
233 | |
234 hasSize_ = true; | 227 hasSize_ = true; |
235 width_ = width; | 228 width_ = width; |
236 height_ = height; | 229 height_ = height; |
237 | 230 |
238 UpdateTransform(); | 231 UpdateTransform(); |