summaryrefslogtreecommitdiff
path: root/src/data
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-09-21 08:48:43 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-09-21 08:48:43 +0200
commit5e5a98b97871ebaa3899e2f1bf08534e32f1f983 (patch)
treea6a5f006dfc9e0e9ad429181166f5aa5ce48da23 /src/data
parentafcf3dba0753d71b801fb035277b2ec857f19de9 (diff)
fixed bug with edge styles
Diffstat (limited to 'src/data')
-rw-r--r--src/data/nodestyle.cpp1
-rw-r--r--src/data/tikzdocument.cpp5
2 files changed, 5 insertions, 1 deletions
diff --git a/src/data/nodestyle.cpp b/src/data/nodestyle.cpp
index 9c38dfd..20245d9 100644
--- a/src/data/nodestyle.cpp
+++ b/src/data/nodestyle.cpp
@@ -22,6 +22,7 @@
#include <QPainter>
NodeStyle *noneStyle = new NodeStyle();
+NodeStyle *unknownStyle = new NodeStyle("unknown", new GraphElementData({GraphElementProperty("tikzit fill", "red")}));
NodeStyle::NodeStyle() : Style()
{
diff --git a/src/data/tikzdocument.cpp b/src/data/tikzdocument.cpp
index 5ddec90..fd70e92 100644
--- a/src/data/tikzdocument.cpp
+++ b/src/data/tikzdocument.cpp
@@ -85,7 +85,10 @@ void TikzDocument::open(QString fileName)
delete _graph;
_graph = newGraph;
foreach (Node *n, _graph->nodes()) n->attachStyle();
- foreach (Edge *e, _graph->edges()) e->updateControls();
+ foreach (Edge *e, _graph->edges()) {
+ e->attachStyle();
+ e->updateControls();
+ }
_parseSuccess = true;
refreshTikz();
setClean();