summaryrefslogtreecommitdiff
path: root/src/data
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2020-04-13 22:30:51 +0100
committerAleks Kissinger <aleks0@gmail.com>2020-04-13 22:30:51 +0100
commit5ca0a2e48d0198102dabad4af5048a53e6938fe8 (patch)
tree76010b4f54e2b872eb484403eb29bad7d5ca0b2f /src/data
parente333ef9cb80e40637235198f9c113fa8cfe0fceb (diff)
automatically expact selection to path
Diffstat (limited to 'src/data')
-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