X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FDimension.h;h=0f7fdabcef320e7a532b5aac685687b95f9ec53b;hb=dba1e40b520f67faeb49759b7cec9ec4f981f9a1;hp=bd8f10d8f259c64db33737f9f6acfe7ef6f19b60;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git diff --git a/src/Dimension.h b/src/Dimension.h index bd8f10d8f2..0f7fdabcef 100644 --- a/src/Dimension.h +++ b/src/Dimension.h @@ -32,6 +32,8 @@ public: void operator+=(Dimension const & dim); /// set to empty box void clear() { wid = asc = des = 0; } + /// check whether box is empty + bool empty() const { return wid == 0 && asc == 0 && des == 0; } /// get height int height() const { return asc + des; } /// get ascent