Made small modifications to Anton Blanchard's pull request #120 to

use DBTypeLongNameTbl[] instead of DBTypeShortName() to print the
names of the illegally overlapping types.
This commit is contained in:
Tim Edwards 2022-01-10 22:38:20 -05:00
parent 93dbc77dcf
commit f43bd19e36
1 changed files with 8 additions and 4 deletions

View File

@ -541,8 +541,10 @@ extHierConnectFunc2(cum, ha)
else if (r.r_xtop > r.r_xbot && r.r_ytop > r.r_ybot)
{
char message[1024];
snprintf(message, sizeof(message), "Illegal overlap between %s and %s (types do not connect)",
DBTypeShortName(ha->hierType), DBTypeShortName(ttype));
snprintf(message, sizeof(message),
"Illegal overlap between %s and %s (types do not connect)",
DBTypeLongNameTbl[ha->hierType], DBTypeLongNameTbl[ttype]);
extNumErrors++;
if (!DebugIsSet(extDebugID, extDebNoFeedback))
@ -647,8 +649,10 @@ extHierConnectFunc3(cum, ha)
else if (r.r_xtop > r.r_xbot && r.r_ytop > r.r_ybot)
{
char message[1024];
snprintf(message, sizeof(message), "Illegal overlap between %s and %s (types do not connect)",
DBTypeShortName(ha->hierType), DBTypeShortName(ttype));
snprintf(message, sizeof(message),
"Illegal overlap between %s and %s (types do not connect)",
DBTypeLongNameTbl[ha->hierType], DBTypeLongNameTbl[ttype]);
extNumErrors++;
if (!DebugIsSet(extDebugID, extDebNoFeedback))