flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bigosma...@apache.org
Subject [19/44] git commit: [flex-sdk] [refs/heads/develop] - FLEX-34539 - verify s:Application assumption to prevent RTE
Date Mon, 24 Nov 2014 21:13:09 GMT
FLEX-34539 - verify s:Application assumption to prevent RTE

Signed-off-by: Erik de Bruin <erik@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/develop
Commit: 7445f2f8a50ccf41fc2ebe8ff8e15788e15134d2
Parents: e05bd08
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Thu Oct 9 10:02:40 2014 +0200
Committer: Erik de Bruin <erik@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)


Mime
View raw message