diff Framework/Scene2D/GrayscaleStyleConfigurator.h @ 1209:b5dec783ba08

Fixed the style configurator to only set inversion on the image if it has been explicitely asked by the user + Fixed AddCircle in the measuring toolbox + dummy change (reindent)
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 04 Dec 2019 15:46:14 +0100
parents eb28dfe432f7
children ab06dfdf3b75 2d8ab34c8c91
line wrap: on
line diff
--- a/Framework/Scene2D/GrayscaleStyleConfigurator.h	Tue Dec 03 09:51:00 2019 +0100
+++ b/Framework/Scene2D/GrayscaleStyleConfigurator.h	Wed Dec 04 15:46:14 2019 +0100
@@ -34,19 +34,21 @@
   private:
     uint64_t        revision_;
     bool            linearInterpolation_;
-    bool            hasWindowing_;
+    bool            hasWindowingOverride_;
     ImageWindowing  windowing_;
     float           customWindowWidth_;
     float           customWindowCenter_;
+    bool            hasInversionOverride_;
     bool            inverted_;
     
   public:
     GrayscaleStyleConfigurator() :
       revision_(0),
       linearInterpolation_(false),
-      hasWindowing_(false),
+      hasWindowingOverride_(false),
       customWindowWidth_(0),
       customWindowCenter_(0),
+      hasInversionOverride_(false),
       inverted_(false)
     {
     }