aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/ExtensionMethods
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-12-26 12:42:17 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-12-26 12:42:17 +0200
commita756bdd61609c9bd093e81d1e2a9edf6bd912882 (patch)
tree0ce84850fef30a44ad3a70c0ef893e041227e22a /Software/Visual_Studio/Tango.BL/ExtensionMethods
parentd3657451afb8e4ca8dde67164d65cba853335a71 (diff)
downloadTango-a756bdd61609c9bd093e81d1e2a9edf6bd912882.tar.gz
Tango-a756bdd61609c9bd093e81d1e2a9edf6bd912882.zip
Fixed hive oval.
Implemented auto selection in color correction 3 and hive.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/ExtensionMethods')
-rw-r--r--Software/Visual_Studio/Tango.BL/ExtensionMethods/ColorConversionSuggestionExtensions.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.BL/ExtensionMethods/ColorConversionSuggestionExtensions.cs b/Software/Visual_Studio/Tango.BL/ExtensionMethods/ColorConversionSuggestionExtensions.cs
index 5a8b30594..807cfa5dd 100644
--- a/Software/Visual_Studio/Tango.BL/ExtensionMethods/ColorConversionSuggestionExtensions.cs
+++ b/Software/Visual_Studio/Tango.BL/ExtensionMethods/ColorConversionSuggestionExtensions.cs
@@ -14,7 +14,14 @@ public static class ColorConversionSuggestionExtensions
/// <returns></returns>
public static ColorConversionSuggestion GetCenterSuggestion(this IEnumerable<ColorConversionSuggestion> suggestions)
{
- return suggestions.ElementAt(10);
+ if (suggestions.Count() == 3)
+ {
+ return suggestions.ElementAt(1);
+ }
+ else
+ {
+ return suggestions.ElementAt(10);
+ }
}
}