-rw-r--r-- | library/qpedecoration_qws.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/qpedecoration_qws.cpp b/library/qpedecoration_qws.cpp index fa38180..fb47c14 100644 --- a/library/qpedecoration_qws.cpp +++ b/library/qpedecoration_qws.cpp @@ -310,5 +310,5 @@ static QImage *okImage( int th ) { static QImage *i = 0; - if ( !i || i->height() != th ) { + if ( !i || ::abs( i->height()-th ) > 4 ) { delete i; i = new QImage(scaleButton(Resource::loadImage("OKButton"),th)); @@ -320,5 +320,5 @@ static QImage *closeImage( int th ) { static QImage *i = 0; - if ( !i || i->height() != th ) { + if ( !i || ::abs( i->height()-th ) > 4 ) { delete i; i = new QImage(scaleButton(Resource::loadImage("CloseButton"),th)); @@ -330,5 +330,5 @@ static QImage *helpImage( int th ) { static QImage *i = 0; - if ( !i || i->height() != th ) { + if ( !i || ::abs( i->height()-th ) > 4 ) { delete i; i = new QImage(scaleButton(Resource::loadImage("HelpButton"),th)); @@ -340,5 +340,5 @@ static QImage *maximizeImage( int th ) { static QImage *i = 0; - if ( !i || i->height() != th ) { + if ( !i || ::abs( i->height()-th ) > 4 ) { delete i; i = new QImage(scaleButton(Resource::loadImage("MaximizeButton"),th)); |