Commit 66cb21a508f115a7a83592dc36f66949912933d6
1 parent
a6db81c8
fixed linux compile errors
Showing
2 changed files
with
7 additions
and
5 deletions
openbr/plugins/gallery.cpp
| ... | ... | @@ -773,11 +773,11 @@ class xmlGallery : public FileGallery |
| 773 | 773 | |
| 774 | 774 | if (pToken == QXmlStreamReader::StartElement) |
| 775 | 775 | { |
| 776 | - // get boudning box properties as attributes, just going to assume this all works | |
| 777 | - qreal x = reader.attributes().value("x").toDouble(); | |
| 778 | - qreal y = reader.attributes().value("y").toDouble(); | |
| 779 | - qreal width = reader.attributes().value("width").toDouble(); | |
| 780 | - qreal height = reader.attributes().value("height").toDouble(); | |
| 776 | + // get bounding box properties as attributes, just going to assume this all works | |
| 777 | + qreal x = reader.attributes().value("x").string()->toDouble(); | |
| 778 | + qreal y = reader.attributes().value("y").string()->toDouble(); | |
| 779 | + qreal width = reader.attributes().value("width").string()->toDouble(); | |
| 780 | + qreal height = reader.attributes().value("height").string()->toDouble(); | |
| 781 | 781 | rects += QRectF(x, y, width, height); |
| 782 | 782 | } |
| 783 | 783 | } | ... | ... |