From 45f28e068b1bd0dff0155020c60d8703d4fe8d09 Mon Sep 17 00:00:00 2001 From: Alex Wilson Date: Tue, 1 May 2012 13:43:10 +1200 Subject: [PATCH] Fix error in height calculation in alm/SharedSolver. --- src/libs/alm/SharedSolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/alm/SharedSolver.cpp b/src/libs/alm/SharedSolver.cpp index 34f090abe4..f46da7e997 100644 --- a/src/libs/alm/SharedSolver.cpp +++ b/src/libs/alm/SharedSolver.cpp @@ -75,7 +75,7 @@ struct SharedSolver::PreferredSizeValidator { ResultType solveResult) { float width = layout->Right()->Value() - layout->Left()->Value(); - float height = layout->Top()->Value() - layout->Bottom()->Value(); + float height = layout->Bottom()->Value() - layout->Top()->Value(); solver->SetPreferredSize(layout, BSize(width, height)); } };