changeset 1238:e257b91fae2c

RadiographyWidget: clear selection when changing scene
author Alain Mazy <alain@mazy.be>
date Thu, 12 Dec 2019 14:30:33 +0100
parents c14fde4a595c
children ce3052f28f2e
files Framework/Radiography/RadiographyAlphaLayer.cpp Framework/Radiography/RadiographyWidget.cpp
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyAlphaLayer.cpp	Tue Dec 10 18:10:19 2019 +0100
+++ b/Framework/Radiography/RadiographyAlphaLayer.cpp	Thu Dec 12 14:30:33 2019 +0100
@@ -91,7 +91,6 @@
       return;  // layer is outside the buffer
     }
 
-    printf("rendering alpha: %d \n", y1);
     t.Apply(tmp, cropped, interpolation, true /* clear */);
 
     float value = foreground_;
--- a/Framework/Radiography/RadiographyWidget.cpp	Tue Dec 10 18:10:19 2019 +0100
+++ b/Framework/Radiography/RadiographyWidget.cpp	Thu Dec 12 14:30:33 2019 +0100
@@ -278,6 +278,8 @@
           new Callable<RadiographyWidget, RadiographyScene::LayerRemovedMessage>
           (*this, &RadiographyWidget::OnLayerRemoved));
 
+    Unselect();
+
     NotifyContentChanged();
 
     // force redraw