X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fdimension.h;h=8bca47a93d1648b910fc696c7e864afc281d4456;hb=2486c96b8d9086471299bf207b85b1ce848246aa;hp=caee49d253a5f319bfcc2db94495ee618a6d2fb8;hpb=ffdb0baea3cfed37790f3769ae74081183d439cc;p=lyx.git diff --git a/src/dimension.h b/src/dimension.h index caee49d253..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) {} @@ -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