From dbb7838937e7bcbe129dd246438aeabfafc6be32 Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 7 Jun 2018 18:04:18 +0200 Subject: Bug 363762 - Tooltips are not shown in dot-generated graphs The basic problem mentioned in this issue was already solved in Mai 2009 (version 1.5.8 or earlier), in case a brief description is present this is displayed otherwise the node number is specified) A remaining thing was that the tooltip with the root nodes (gray nodes) was always something like Node0 irrespective of the brief description. This has been solved here. --- src/dot.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dot.cpp b/src/dot.cpp index eeb8b8b..2db5ca9 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -1878,10 +1878,10 @@ void DotNode::writeBox(FTextStream &t, << m_url.right(m_url.length()-anchorPos) << "\""; } } - if (!m_tooltip.isEmpty()) - { - t << ",tooltip=\"" << escapeTooltip(m_tooltip) << "\""; - } + } + if (!m_tooltip.isEmpty()) + { + t << ",tooltip=\"" << escapeTooltip(m_tooltip) << "\""; } t << "];" << endl; } -- cgit v0.12