Fix setting layoutWidth/layoutHeight in points.

This commit is contained in:
and3md 2017-08-16 22:20:25 +02:00
parent cde0731877
commit 8a7245ba24
1 changed files with 2 additions and 2 deletions

View File

@ -1373,9 +1373,9 @@ public:
int lw = layoutWidth;
// constant value support
if (!(isPercentSize(lh) || isSpecialSize(lh)))
dy = lh;
dy = lh.toPixels();
if (!(isPercentSize(lw) || isSpecialSize(lw)))
dx = lw;
dx = lw.toPixels();
// apply min/max width and height constraints
int minw = minWidth;
int maxw = maxWidth;