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