Mercurial > hg > orthanc-stone
diff Framework/Widgets/WorldSceneWidget.cpp @ 313:8bdc6112bc2e am-2
initial resize of canvas
author | am@osimis.io |
---|---|
date | Wed, 03 Oct 2018 17:01:05 +0200 |
parents | 300d8b8c48b3 |
children | 8716176ff7f0 |
line wrap: on
line diff
--- a/Framework/Widgets/WorldSceneWidget.cpp Tue Oct 02 10:15:36 2018 +0200 +++ b/Framework/Widgets/WorldSceneWidget.cpp Wed Oct 03 17:01:05 2018 +0200 @@ -24,6 +24,7 @@ #include <math.h> #include <memory> #include <cassert> +#include "Core/Logging.h" namespace OrthancStone { @@ -138,7 +139,8 @@ if (that_.view_.GetDisplayHeight() <= 3) { - return; // Cannot zoom on such a small image + LOG(WARNING) << "image is too small to zoom (current height = " << that_.view_.GetDisplayHeight() << ")"; + return; } double dy = (static_cast<double>(y - downY_) /