From 5ca0a2e48d0198102dabad4af5048a53e6938fe8 Mon Sep 17 00:00:00 2001 From: Aleks Kissinger Date: Mon, 13 Apr 2020 22:30:51 +0100 Subject: automatically expact selection to path --- src/data/style.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/data') 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 -- cgit v1.2.3