X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fdimension.h;h=4e803682d3d97f6663840544cdbaceeae73f52f8;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=de5691cb2f813e6bb5797fa4c766899d27fe27f4;hpb=282bf655ed8b55a02a624497f2ec169288d5102b;p=lyx.git diff --git a/src/dimension.h b/src/dimension.h index de5691cb2f..4e803682d3 100644 --- a/src/dimension.h +++ b/src/dimension.h @@ -13,6 +13,8 @@ #define DIMENSION_H +namespace lyx { + class LyXFont; /// Simple wrapper around three ints @@ -61,4 +63,13 @@ public: int des; }; +inline +bool operator==(Dimension const & a, Dimension const & b) +{ + return a.wid == b.wid && a.asc == b.asc && a.des ==b.des ; +} + + +} // namespace lyx + #endif