Merge pull request #1544 from Technius/issue-1542

Fix segfault when pasting strokes (regression due to #1511)
presentation
Bryan Tan 7 years ago committed by GitHub
commit 831c0311fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/model/Stroke.cpp

@ -91,7 +91,7 @@ void Stroke::readSerialized(ObjectInputStream& in)
int count{};
in.readData((void**) &p, &count);
this->points = std::vector<Point>{p, p + count};
delete[] p;
g_free(p);
this->lineStyle.readSerialized(in);
in.endObject();

Loading…
Cancel
Save