You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2014/10/09 10:03:09 UTC

git commit: [flex-sdk] [refs/heads/iso7skins] - FLEX-34539 - verify s:Application assumption to prevent RTE

Repository: flex-sdk
Updated Branches:
  refs/heads/iso7skins e05bd08cc -> 7445f2f8a


FLEX-34539 - verify s:Application assumption to prevent RTE

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/7445f2f8
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/7445f2f8
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/7445f2f8

Branch: refs/heads/iso7skins
Commit: 7445f2f8a50ccf41fc2ebe8ff8e15788e15134d2
Parents: e05bd08
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Thu Oct 9 10:02:40 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Thu Oct 9 10:02:40 2014 +0200

----------------------------------------------------------------------
 .../src/spark/skins/ios7/supportClasses/CalloutArrow.as        | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/7445f2f8/frameworks/projects/mobiletheme/src/spark/skins/ios7/supportClasses/CalloutArrow.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobiletheme/src/spark/skins/ios7/supportClasses/CalloutArrow.as b/frameworks/projects/mobiletheme/src/spark/skins/ios7/supportClasses/CalloutArrow.as
index f9c9d16..8a003ff 100644
--- a/frameworks/projects/mobiletheme/src/spark/skins/ios7/supportClasses/CalloutArrow.as
+++ b/frameworks/projects/mobiletheme/src/spark/skins/ios7/supportClasses/CalloutArrow.as
@@ -57,7 +57,11 @@ public class CalloutArrow extends UIComponent
         
         useBackgroundGradient = true;
         
-        var applicationDPI:Number = Application(FlexGlobals.topLevelApplication).applicationDPI;
+		var applicationDPI:Number = DPIClassification.DPI_160;
+		if (FlexGlobals.topLevelApplication is Application)
+		{
+			applicationDPI = Application(FlexGlobals.topLevelApplication).applicationDPI;
+		}
         
         // Copy DPI-specific values from CalloutSkin
         switch (applicationDPI)