Ignore copying text from empty columns

This commit is contained in:
dmex
2018-05-29 01:46:31 +10:00
parent a9c57851a7
commit 4f79f2c0b7
+6 -2
View File
@@ -320,8 +320,12 @@ PPH_STRING PhGetTreeNewText(
PhInitializeEmptyStringRef(&getCellText.Text);
TreeNew_GetCellText(TreeNewHandle, &getCellText);
PhAppendStringBuilder(&stringBuilder, &getCellText.Text);
PhAppendStringBuilder2(&stringBuilder, L", ");
// Ignore empty columns. -dmex
if (getCellText.Text.Length != 0)
{
PhAppendStringBuilder(&stringBuilder, &getCellText.Text);
PhAppendStringBuilder2(&stringBuilder, L", ");
}
}
// Remove the trailing comma and space.