From 2d045efa9e13e2cf74c008c08290a71768fb4d47 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 13 Jul 2020 05:08:50 -0700 Subject: [PATCH] Fixed double-printing with types derived from typed primitives --- IDEHelper/WinDebugger.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IDEHelper/WinDebugger.cpp b/IDEHelper/WinDebugger.cpp index d6325685..5947c03d 100644 --- a/IDEHelper/WinDebugger.cpp +++ b/IDEHelper/WinDebugger.cpp @@ -7809,8 +7809,9 @@ String WinDebugger::DbgTypedValueToString(const DbgTypedValue& origTypedValue, c while (summaryType != NULL) { summaryType->PopulateType(); - - if (summaryType->IsTypedPrimitive()) + + if ((summaryType->IsTypedPrimitive()) && + ((summaryType->mBaseTypes.IsEmpty()) || (!summaryType->mBaseTypes.front()->mBaseType->IsTypedPrimitive()))) { if (formatInfo.mTotalSummaryLength + (int)displayString.length() > 255) {