X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftitledocument.cpp;h=0ebc42fd0992fedbbd2e91d63b42af00d48e559b;hb=3ffb17dcb7cdd3e1f387c99fd1fb200e11c446af;hp=8c360d7d4002bdca0220440c8eb661a266a7ba77;hpb=11a50a78e6d3c8bc7e1d189ec01233c4a33b7387;p=kdenlive diff --git a/src/titledocument.cpp b/src/titledocument.cpp index 8c360d7d..0ebc42fd 100644 --- a/src/titledocument.cpp +++ b/src/titledocument.cpp @@ -37,6 +37,8 @@ #include #include +#include + #if QT_VERSION >= 0x040600 #include #include @@ -121,6 +123,9 @@ QDomDocument TitleDocument::xml(QGraphicsRectItem* startv, QGraphicsRectItem* en QDomElement main = doc.createElement("kdenlivetitle"); main.setAttribute("width", m_width); main.setAttribute("height", m_height); + // Save locale + const char *locale = setlocale(LC_NUMERIC, NULL); + main.setAttribute("LC_NUMERIC", locale); doc.appendChild(main); foreach(QGraphicsItem * item, m_scene->items()) { @@ -420,6 +425,7 @@ int TitleDocument::loadFromXml(QDomDocument doc, QGraphicsRectItem* startv, QGra pix.loadFromData(QByteArray::fromBase64(base64.toAscii())); } QGraphicsPixmapItem *rec = m_scene->addPixmap(pix); + rec->setShapeMode(QGraphicsPixmapItem::BoundingRectShape); rec->setData(Qt::UserRole, url); if (!base64.isEmpty()) { rec->setData(Qt::UserRole + 1, base64);