From 84248098ca26ebe6cfe2e816a3a3e1bba59e8aae Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Sun, 15 Sep 2019 14:31:13 +0200 Subject: [PATCH] don't return constraining parameters --- src/controls/QskGraphicLabel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controls/QskGraphicLabel.cpp b/src/controls/QskGraphicLabel.cpp index 6b2e999b..0921eb96 100644 --- a/src/controls/QskGraphicLabel.cpp +++ b/src/controls/QskGraphicLabel.cpp @@ -261,12 +261,12 @@ QSizeF QskGraphicLabel::contentsSizeHint( if ( constraint.width() >= 0.0 ) { sz.setHeight( sz.height() * constraint.width() / sz.width() ); - sz.setWidth( constraint.width() ); + sz.setWidth( -1.0 ); } else if ( constraint.height() >= 0.0 ) { sz.setWidth( sz.width() * constraint.height() / sz.height() ); - sz.setHeight( constraint.height() ); + sz.setHeight( -1.0 ); } }