From 8a3eafe9b93f4ed97cd27cb9f5fbb99027987164 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Thu, 1 Aug 2013 10:37:32 -0400 Subject: [PATCH] toRect bug fix --- openbr/core/qtutils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbr/core/qtutils.cpp b/openbr/core/qtutils.cpp index 0fa103e..fe295cf 100644 --- a/openbr/core/qtutils.cpp +++ b/openbr/core/qtutils.cpp @@ -334,8 +334,8 @@ QRectF QtUtils::toRect(const QString &string, bool *ok) bool okX, okY, okWidth, okHeight; x = words[0].toFloat(&okX); y = words[1].toFloat(&okY); - width = words[0].toFloat(&okWidth); - height = words[1].toFloat(&okHeight); + width = words[2].toFloat(&okWidth); + height = words[3].toFloat(&okHeight); if (okX && okY && okWidth && okHeight) { if (ok) *ok = true; return QRectF(x, y, width, height); -- libgit2 0.21.4