Commit ed9ddf60 authored by Oliver Kellogg's avatar Oliver Kellogg
Browse files

umbrello/layoutgenerator.cpp : fix indentation in function splitParameters()

parent bbc6f725
...@@ -367,7 +367,8 @@ bool LayoutGenerator::parseLine(const QString &line) ...@@ -367,7 +367,8 @@ bool LayoutGenerator::parseLine(const QString &line)
return true; return true;
} else if (a[0] == "node") { } else if (a[0] == "node") {
QString key = fixID(a[1]); QString key = fixID(a[1]);
m_nodes[key] = QRectF(a[2].toDouble()*m_scale, a[3].toDouble()*m_scale, a[4].toDouble()*m_scale, a[5].toDouble()*m_scale); m_nodes[key] = QRectF(a[2].toDouble()*m_scale, a[3].toDouble()*m_scale,
a[4].toDouble()*m_scale, a[5].toDouble()*m_scale);
return true; return true;
} else if (a[0] == "edge") { } else if (a[0] == "edge") {
QString key = fixID(a[1]+a[2]); QString key = fixID(a[1]+a[2]);
...@@ -429,18 +430,18 @@ bool LayoutGenerator::splitParameters(QMap<QString,QStringList> &map, const QStr ...@@ -429,18 +430,18 @@ bool LayoutGenerator::splitParameters(QMap<QString,QStringList> &map, const QStr
if (key == "pos") { if (key == "pos") {
value.remove("e,"); value.remove("e,");
data = value.split(' '); data = value.split(' ');
} else if (key.startsWith('_')) { } else if (key.startsWith('_')) {
data = value.split(' '); data = value.split(' ');
} }
else if (key == "label") else if (key == "label")
data = QStringList() << value; data = QStringList() << value;
else else
data = value.split(','); data = value.split(',');
if (map.contains(key)) if (map.contains(key))
map[key] << data; map[key] << data;
else else
map[key] = data; map[key] = data;
} }
return true; return true;
} }
......
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