Commit 6b3b2015 authored by Jan Möbius's avatar Jan Möbius
Browse files

Dennis:

Accept-0-as-maximum-picking-index

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5547 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2334d28f
......@@ -190,7 +190,10 @@ ColorStack::Node::~Node ()
bool ColorStack::Node::setMaximumIndex (unsigned int _idx)
{
if (colorStartIdx_ == 0 && _idx > 0 && translator_->max_index () > endIdx_ + _idx)
if (_idx == 0)
_idx = 1;
if (colorStartIdx_ == 0 && translator_->max_index () > endIdx_ + _idx)
{
colorStartIdx_ = endIdx_;
endIdx_ = colorEndIdx_ = colorStartIdx_ + _idx;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment