comparison Framework/Radiography/RadiographyScene.cpp @ 507:ce49eae4c887 bgo-commands-codegen

Codegen + Warning fixes
author Benjamin Golinvaux <bgo@osimis.io>
date Fri, 01 Mar 2019 16:18:38 +0100
parents 77e0eb83ff63
children b336dfa71f12
comparison
equal deleted inserted replaced
506:801d2697a1b1 507:ce49eae4c887
560 560
561 LOG(INFO) << "Exporting DICOM"; 561 LOG(INFO) << "Exporting DICOM";
562 562
563 Extent2D extent = GetSceneExtent(); 563 Extent2D extent = GetSceneExtent();
564 564
565 int w = std::ceil(extent.GetWidth() / pixelSpacingX); 565 int w = static_cast<int>(std::ceil(extent.GetWidth() / pixelSpacingX));
566 int h = std::ceil(extent.GetHeight() / pixelSpacingY); 566 int h = static_cast<int>(std::ceil(extent.GetHeight() / pixelSpacingY));
567 567
568 if (w < 0 || h < 0) 568 if (w < 0 || h < 0)
569 { 569 {
570 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); 570 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
571 } 571 }