mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Only print real bools as True/False, not anything that can convert
This commit is contained in:
@@ -387,7 +387,7 @@ void PipelineStateViewer::exportHTMLTable(QXmlStreamWriter &xml, const QStringLi
|
||||
{
|
||||
xml.writeStartElement(lit("td"));
|
||||
|
||||
if(el.canConvert<bool>())
|
||||
if(el.type() == QVariant::Bool)
|
||||
xml.writeCharacters(el.toBool() ? tr("True") : tr("False"));
|
||||
else
|
||||
xml.writeCharacters(el.toString());
|
||||
|
||||
Reference in New Issue
Block a user