Commit 8a3eafe9b93f4ed97cd27cb9f5fbb99027987164

Authored by Josh Klontz
1 parent 950ba90b

toRect bug fix

Showing 1 changed file with 2 additions and 2 deletions
openbr/core/qtutils.cpp
... ... @@ -334,8 +334,8 @@ QRectF QtUtils::toRect(const QString &string, bool *ok)
334 334 bool okX, okY, okWidth, okHeight;
335 335 x = words[0].toFloat(&okX);
336 336 y = words[1].toFloat(&okY);
337   - width = words[0].toFloat(&okWidth);
338   - height = words[1].toFloat(&okHeight);
  337 + width = words[2].toFloat(&okWidth);
  338 + height = words[3].toFloat(&okHeight);
339 339 if (okX && okY && okWidth && okHeight) {
340 340 if (ok) *ok = true;
341 341 return QRectF(x, y, width, height);
... ...