Skip to content

Commit 293d502

Browse files
committed
Fixed value of Vectors when hidding the classpath, and more secure returned value on other types.
1 parent 2ba02c0 commit 293d502

File tree

1 file changed

+6
-2
lines changed
  • External/Plugins/FlashDebugger/Controls/DataTree

1 file changed

+6
-2
lines changed

External/Plugins/FlashDebugger/Controls/DataTree/ValueNode.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,16 @@ public override string Value
3737
if (HideFullClasspath)
3838
{
3939
// return class type without classpath
40-
typeStr = m_Value.getTypeName().ToString().AfterLast("::", true);
40+
string typeName = m_Value.getTypeName().ToString();
41+
if (typeName.StartsWith("__AS3__.vec::Vector.<") || typeName.StartsWith("Vector.<"))
42+
typeStr = "Vector.<" + typeName.AfterLast("::", true);
43+
else
44+
typeStr = typeName.After("::", 0, true).Replace("::", ".");
4145
}
4246
else
4347
{
4448
// return class type with classpath
45-
typeStr = m_Value.getTypeName().replaceAll("::", ".").ToString();
49+
typeStr = m_Value.getTypeName().ToString().Replace("::", ".");
4650
}
4751

4852
// show / hide IDs

0 commit comments

Comments
 (0)