summaryrefslogtreecommitdiff
path: root/src/gui/models/colormodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/models/colormodel.cpp')
-rw-r--r--src/gui/models/colormodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/models/colormodel.cpp b/src/gui/models/colormodel.cpp
index f7b18d300..a31b245c4 100644
--- a/src/gui/models/colormodel.cpp
+++ b/src/gui/models/colormodel.cpp
@@ -51,7 +51,7 @@ std::string ColorModel::getElementAt(int i)
const ColorPair *ColorModel::getColorAt(const int i) const
{
if (i >= static_cast<int>(mColors.size()) || i < 0)
- return nullptr;
+ return &mColors[0];
return &mColors[i];
}