Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

When importing an image as first clip, make sure we don't create an invalid profile

parent 705a2502
......@@ -149,7 +149,9 @@ void LoadJob::checkProfile(const QString clipId, QDomElement xml, std::shared_pt
if (service == QLatin1String("qimage") || service == QLatin1String("pixbuf")) {
// This is an image, create profile from image size
int width = producer->get_int("");
width += width % 8;
int height = producer->get_int("");
height += height % 2;
if (width > 100 && height > 100) {
std::unique_ptr<ProfileParam> projectProfile(new ProfileParam(pCore->getCurrentProfile().get()));
projectProfile->m_width = width;
Markdown is supported
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