*do not process ampersand as treeview nodes, makes alignment mess. fixes issue #19532

git-svn-id: trunk@32669 -
This commit is contained in:
zeljko 2011-10-04 10:36:43 +00:00
parent a21a345ffc
commit 33b1105d89

View File

@ -4637,9 +4637,9 @@ var
Details := ThemeServices.GetElementDetails(ttItemNormal);
if (tvoThemedDraw in Options) then
ThemeServices.DrawText(Canvas, Details, AText, NodeRect, DT_CENTER or DT_VCENTER or DT_SINGLELINE, 0)
ThemeServices.DrawText(Canvas, Details, AText, NodeRect, DT_CENTER or DT_VCENTER or DT_SINGLELINE or DT_NOPREFIX, 0)
else
DrawText(Canvas.Handle, PChar(AText), -1, NodeRect, DT_CENTER or DT_VCENTER or DT_SINGLELINE);
DrawText(Canvas.Handle, PChar(AText), -1, NodeRect, DT_CENTER or DT_VCENTER or DT_SINGLELINE or DT_NOPREFIX);
end;