Explorar o código

Fix GetPaletteBuilder

tznind hai 10 meses
pai
achega
fd7f994a58
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      UICatalog/Scenarios/Images.cs

+ 2 - 2
UICatalog/Scenarios/Images.cs

@@ -425,8 +425,8 @@ public class Images : Scenario
     {
         switch (_rgPaletteBuilder.SelectedItem)
         {
-            case 0: return new MedianCutPaletteBuilder (GetDistanceAlgorithm ());
-            case 1: return new PopularityPaletteWithThreshold (GetDistanceAlgorithm (), _popularityThreshold.Value);
+            case 0: return new PopularityPaletteWithThreshold (GetDistanceAlgorithm (), _popularityThreshold.Value);
+            case 1: return new MedianCutPaletteBuilder (GetDistanceAlgorithm ());
             default: throw new ArgumentOutOfRangeException ();
         }
     }