-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2011 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include "mixedrows.h"
namespace Msp {
if(!first)
{
Slot *prev = slots.back();
- if(!hsplit)
- slot->constraints.push_back(Constraint(RIGHT_OF, *prev));
+ slot->constraints.push_back(Constraint((hsplit ? FAR_RIGHT_OF : RIGHT_OF), *prev));
slot->constraints.push_back(Constraint(ALIGN_TOP, *prev));
slot->constraints.push_back(Constraint(ALIGN_BOTTOM, *prev));
if(uniform_cols)
else if(!slots.empty())
{
Slot *prev = slots.back();
- if(!vsplit)
- slot->constraints.push_back(Constraint(BELOW, *prev));
+ slot->constraints.push_back(Constraint((vsplit ? FAR_BELOW : BELOW), *prev));
if(uniform_rows)
slot->constraints.push_back(Constraint(COPY_HEIGHT, *prev));
}