summaryrefslogtreecommitdiff
path: root/src/data/style.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/style.cpp')
-rw-r--r--src/data/style.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/data/style.cpp b/src/data/style.cpp
index d0f011d..fe33ee0 100644
--- a/src/data/style.cpp
+++ b/src/data/style.cpp
@@ -62,7 +62,9 @@ QColor Style::fillColor(bool tikzitOverride) const
QBrush Style::brush() const
{
- return QBrush(fillColor());
+ QString col = propertyWithDefault("fill", "none", true);
+ if (col == "none") return Qt::NoBrush;
+ else return QBrush(tikzit->colorByName(col));
}
QString Style::shape(bool tikzitOverride) const