summaryrefslogtreecommitdiff
path: root/src/data/graphelementdata.cpp
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2019-01-06 18:02:17 +0100
committerAleks Kissinger <aleks0@gmail.com>2019-01-06 18:02:17 +0100
commit6fe55641057153e1a8f4da2e377150acd8a8cbd3 (patch)
tree4dd3c6e77ca8699e5ee6f108124ed986842b1f06 /src/data/graphelementdata.cpp
parentad519c0f0dfab503d41a59d7129fb9a6c9682860 (diff)
fixed looseness/bend bug
Diffstat (limited to 'src/data/graphelementdata.cpp')
-rw-r--r--src/data/graphelementdata.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/data/graphelementdata.cpp b/src/data/graphelementdata.cpp
index f743bc5..cd09a6d 100644
--- a/src/data/graphelementdata.cpp
+++ b/src/data/graphelementdata.cpp
@@ -97,7 +97,8 @@ bool GraphElementData::hasProperty(QString key)
bool GraphElementData::atom(QString atom)
{
- return (indexOfKey(atom) != -1);
+ int idx = indexOfKey(atom);
+ return (idx != -1 && _properties[idx].atom());
}
int GraphElementData::indexOfKey(QString key)