Merge branch 'master' of https://github.com/xournalpp/xournalpp.git into gtk3-only-v1

presentation
Andreas Butti 7 years ago
commit 1a173c9fdf
  1. 3
      src/model/Layer.cpp

@ -82,6 +82,9 @@ void Layer::insertElement(Element* e, int pos)
}
}
if(pos == -1) pos=0; //otherwise it segfaults on the next step trying
//to access a negative index on the elements array
this->elements.insert(this->elements.begin() + pos, e);
}

Loading…
Cancel
Save