diff --git a/openbr/plugins/gallery.cpp b/openbr/plugins/gallery.cpp index 234c695..8218948 100644 --- a/openbr/plugins/gallery.cpp +++ b/openbr/plugins/gallery.cpp @@ -773,11 +773,11 @@ class xmlGallery : public FileGallery if (pToken == QXmlStreamReader::StartElement) { - // get boudning box properties as attributes, just going to assume this all works - qreal x = reader.attributes().value("x").toDouble(); - qreal y = reader.attributes().value("y").toDouble(); - qreal width = reader.attributes().value("width").toDouble(); - qreal height = reader.attributes().value("height").toDouble(); + // get bounding box properties as attributes, just going to assume this all works + qreal x = reader.attributes().value("x").string()->toDouble(); + qreal y = reader.attributes().value("y").string()->toDouble(); + qreal width = reader.attributes().value("width").string()->toDouble(); + qreal height = reader.attributes().value("height").string()->toDouble(); rects += QRectF(x, y, width, height); } } diff --git a/openbr/universal_template.cpp b/openbr/universal_template.cpp index 524496f..eb47258 100644 --- a/openbr/universal_template.cpp +++ b/openbr/universal_template.cpp @@ -1,4 +1,6 @@ #include +#include +#include #include #include