X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frow.cpp;h=92f3fe62b19e77c8bdf9792f033420be58f88347;hb=304500a51a1a9d00e3c84ed2a6ffda0f829445b4;hp=ae13e49ec2e64f9f331db394d9c8367b56ec3c37;hpb=b30edd979e6e9c7acfaaf3a90903814a7e62a71e;p=libs%2Fgltk.git diff --git a/source/row.cpp b/source/row.cpp index ae13e49..92f3fe6 100644 --- a/source/row.cpp +++ b/source/row.cpp @@ -12,6 +12,9 @@ Row::Row(Layout &l): void Row::split() { + if(gravity>0) + throw arrangement_error("already split"); + split_here = true; gravity = 1; }