diff options
Diffstat (limited to 'src/data/style.cpp')
-rw-r--r-- | src/data/style.cpp | 1 |
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);
|