Browse Source

fix bug in no data plot

Patrick Schreiber 8 years ago
parent
commit
92a8b3533b
3 changed files with 4 additions and 3 deletions
  1. 1 1
      KCG/VERSION
  2. 2 1
      KCG/base/plotWidget.py
  3. 1 1
      setup.py

+ 1 - 1
KCG/VERSION

@@ -1 +1 @@
-0.3.2.164.0401-beta
+0.3.2.165.0405-beta

+ 2 - 1
KCG/base/plotWidget.py

@@ -502,7 +502,8 @@ class SubPlotWidget(pg.GraphicsLayoutWidget):
         if type != self.plotType:
             self._type_changed = True
         self.plotType = type
-        self.gradient_legend.image_changed()
+        if type not in [ERROR, NO_DATA]:
+            self.gradient_legend.image_changed()
 
 
 class PlotWidget(kcgw.KCGWidgets):

+ 1 - 1
setup.py

@@ -5,7 +5,7 @@ DESCRIPTION = "KCG KAPTURE Control Gui"
 
 setup(
     name='KCG',
-    version='0.3.2.164.0401-beta',
+    version='0.3.2.165.0405-beta',
     author='Patrick Schreiber',
     author_email='uldfk@student.kit.edu',
 #    license='GPL',