diff Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp @ 1576:92fca2b3ba3d

sanitizing the handling of canvas size
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Sep 2020 16:40:30 +0200
parents e4a52cbbdd70
children 1f812f4c95be
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp	Wed Sep 23 17:25:25 2020 +0200
+++ b/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp	Thu Sep 24 16:40:30 2020 +0200
@@ -1466,7 +1466,7 @@
 
         if (fitNextContent_)
         {
-          lock->GetCompositor().RefreshCanvasSize();
+          lock->RefreshCanvasSize();
           lock->GetCompositor().FitContent(scene);
           fitNextContent_ = false;
         }
@@ -1750,7 +1750,7 @@
   void UpdateSize(bool fitContent)
   {
     std::unique_ptr<OrthancStone::IViewport::ILock> lock(viewport_->Lock());
-    lock->GetCompositor().RefreshCanvasSize();
+    lock->RefreshCanvasSize();
 
     if (fitContent)
     {