X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fdimension.h;h=8bca47a93d1648b910fc696c7e864afc281d4456;hb=2486c96b8d9086471299bf207b85b1ce848246aa;hp=f6ab891cc99760e46fb312021482f799fa0046cb;hpb=0be0fcfd5907d448cd51addf83ed7032719a0692;p=lyx.git diff --git a/src/dimension.h b/src/dimension.h index f6ab891cc9..8bca47a93d 100644 --- a/src/dimension.h +++ b/src/dimension.h @@ -16,7 +16,7 @@ class LyXFont; /// Simple wrapper around three ints -struct Dimension { +class Dimension { public: /// constructor Dimension() : wid(0), asc(0), des(0) {} @@ -46,7 +46,7 @@ public: public: /// these are intentionally public as things like /// - /// dim.asc += 20; + /// dim.asc += 20; /// /// are used all over the place and "hiding" those behind /// @@ -61,4 +61,10 @@ 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 ; +} + #endif