aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Converters
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-02-07 15:39:12 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-02-07 15:39:12 +0200
commitbd3cb640be12621ac37253e8a8c627ae40692e4d (patch)
treecddc36bc95b966f48e1b7387fed1955504d3975b /Software/Visual_Studio/Tango.Touch/Converters
parent7a1f9f14cc50001366be0efefc25fd5af403d02e (diff)
downloadTango-bd3cb640be12621ac37253e8a8c627ae40692e4d.tar.gz
Tango-bd3cb640be12621ac37253e8a8c627ae40692e4d.zip
Some fixes and improvements for PPC & Machine Studio.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Converters')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Converters/TouchIconKindToGeometryConverter.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Converters/TouchIconKindToGeometryConverter.cs b/Software/Visual_Studio/Tango.Touch/Converters/TouchIconKindToGeometryConverter.cs
index 54358d59b..3174156c0 100644
--- a/Software/Visual_Studio/Tango.Touch/Converters/TouchIconKindToGeometryConverter.cs
+++ b/Software/Visual_Studio/Tango.Touch/Converters/TouchIconKindToGeometryConverter.cs
@@ -14,7 +14,15 @@ namespace Tango.Touch.Converters
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
TouchIconKind kind = (TouchIconKind)value;
- return TouchIcon.Icons[kind];
+
+ if (TouchIcon.Icons != null)
+ {
+ return TouchIcon.Icons[kind];
+ }
+ else
+ {
+ return TouchIconKind.AccessPoint;
+ }
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)