changeset 1314:769d7890203b

Layers such as time-value layers with ColourDistinguishes property should use the dark background when a bright colour is selected. This is how it was always supposed to work, I think, but I broke it so long ago that this "fix" might itself come across as a surprising breaking change
author Chris Cannam
date Wed, 04 Jul 2018 15:33:47 +0100
parents be935f9b2ae6
children 1d7921b1852f
files view/View.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/view/View.cpp	Thu Jun 28 14:48:35 2018 +0100
+++ b/view/View.cpp	Wed Jul 04 15:33:47 2018 +0100
@@ -511,7 +511,7 @@
         }
     }
 
-    if (int(maxSignificance) >= int(Layer::ColourAndBackgroundSignificant)) {
+    if (int(maxSignificance) >= int(Layer::ColourDistinguishes)) {
         return !mostSignificantHasDarkBackground;
     } else {
         return !darkPalette;