summaryrefslogtreecommitdiff
path: root/src/data/stylelist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/stylelist.cpp')
-rw-r--r--src/data/stylelist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/stylelist.cpp b/src/data/stylelist.cpp
index 14302c7..bc2ef37 100644
--- a/src/data/stylelist.cpp
+++ b/src/data/stylelist.cpp
@@ -51,7 +51,7 @@ void StyleList::removeNthStyle(int n)
void StyleList::clear()
{
int n = numInCategory();
- if (n > 0) {
+ if (n > 1) {
beginRemoveRows(QModelIndex(), 1, n - 1);
_styles.clear();
if (_edgeStyles) _styles << noneEdgeStyle;