Commit e2ee0d15 authored by Ralf Habacker's avatar Ralf Habacker

Fix 'Reversed sequence numbers on stack trace import'.

BUG:363807
 FIXED-IN:2.19.2 (KDE Applications 16.04.2)
parent 781277cf
......@@ -791,10 +791,11 @@ bool importStackTrace(const QString &fileName, UMLScene *scene)
MessageWidgetList messages;
// for each line
int index = 1;
foreach(const QString &line, lines) {
QString sequence, package, method;
QString stackframe, package, method;
if (!parseStraceTraceLine(line, sequence, package, method))
if (!parseStraceTraceLine(line, stackframe, package, method))
continue;
bool createObject = false;
......@@ -828,7 +829,7 @@ bool importStackTrace(const QString &fileName, UMLScene *scene)
messageWidget = new MessageWidget(scene, leftWidget, rightWidget, y,
createObject ? Uml::SequenceMessage::Creation : Uml::SequenceMessage::Synchronous);
messageWidget->setCustomOpText(method);
messageWidget->setSequenceNumber(sequence);
messageWidget->setSequenceNumber(QString::number(index++));
messageWidget->calculateWidget();
messageWidget->activate();
messageWidget->setY(y);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment