Ticket #13064: 20170712_rect.patch

File 20170712_rect.patch, 549 bytes (added by Peter Bennett, 8 years ago)

Apply the normalized result to the MythRect object

  • mythtv/libs/libmythui/mythrect.cpp

    diff --git a/mythtv/libs/libmythui/mythrect.cpp b/mythtv/libs/libmythui/mythrect.cpp
    index ee362d2..f2663cb 100644
    a b void MythRect::NormRect(void)  
    112112
    113113    QRect::moveTopLeft(QPoint(X,Y));
    114114
    115     normalized();
     115//  This would apply the result of normalized to the rect but causes
     116//  problems
     117//    QRect tr = normalized();
     118//    setRect(tr.x(), tr.y(), tr.width(), tr.height());
    116119}
    117120
    118121void MythRect::setRect(const QString &sX, const QString &sY,