]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/row.cpp
Add some sanity checks to arrangements
[libs/gltk.git] / source / row.cpp
index ae13e49ec2e64f9f331db394d9c8367b56ec3c37..92f3fe62b19e77c8bdf9792f033420be58f88347 100644 (file)
@@ -12,6 +12,9 @@ Row::Row(Layout &l):
 
 void Row::split()
 {
+       if(gravity>0)
+               throw arrangement_error("already split");
+
        split_here = true;
        gravity = 1;
 }