summaryrefslogtreecommitdiff
path: root/src/data/style.cpp
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-08-04 18:16:18 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-08-04 18:16:18 +0200
commit20e06dd885819f7b16711ac5359fcdcfb8d26c86 (patch)
tree3b8548d24e964e3c3bb69b853f8e745f29b004dd /src/data/style.cpp
parent247d9e6b004b2920d696245838b9969690637fd2 (diff)
style editor
Diffstat (limited to 'src/data/style.cpp')
-rw-r--r--src/data/style.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/data/style.cpp b/src/data/style.cpp
index 2e19c4f..0128d36 100644
--- a/src/data/style.cpp
+++ b/src/data/style.cpp
@@ -65,6 +65,7 @@ QPen Style::pen() const
QString Style::propertyWithDefault(QString prop, QString def, bool tikzitOverride) const
{
+ if (_data == 0) return def;
QString val;
if (tikzitOverride) {
val = _data->property("tikzit " + prop);