From 66cb21a508f115a7a83592dc36f66949912933d6 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Thu, 5 Jun 2014 16:06:10 -0400 Subject: [PATCH] fixed linux compile errors --- openbr/plugins/gallery.cpp | 10 +++++----- openbr/universal_template.cpp | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) 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 -- libgit2 0.21.4